-
-
Notifications
You must be signed in to change notification settings - Fork 400
Add and update specs for IO methods #1384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
4a7d459
Add spec for IO#binmode disabling newline conversion when reading
javanthropus 976d046
Add specs for IO#getbyte after ungetc
javanthropus 6f9fba9
Add specs for IO#internal_encoding with BINARY external encoding
javanthropus a8dd789
Add spec for IO#pwrite raising Errno::EINVAL on invalid offset
javanthropus d91bdf7
Update and add specs for IO#read_nonblock after ungetc and with 0 length
javanthropus 40e859f
Add specs for IO#read after ungetc
javanthropus 3a69b22
Add specs for IO#readbyte after ungetc
javanthropus f0a3b5f
Add spec for IO#readpartial raising IOError after ungetc with charact…
javanthropus 46f9838
Add specs for IO#reopen argument checking and open modes
javanthropus 538111f
Add spec for IO#seek clearing character buffer after ungetc
javanthropus 950b6cc
Refactor IO#set_encoding specs and add missing edge cases
javanthropus 09eb335
Add and update specs for IO#sysread with buffered IO
javanthropus 18069f9
Add and update specs for IO#sysseek with buffered IO
javanthropus e1b1972
Add and refactor specs for IO#syswrite on pipes
javanthropus c9449cb
Add specs for IO#write with ASCII-8BIT encoding and newline conversion
javanthropus 5694592
Omit IO#pwrite test for EINVAL result on Windows
javanthropus 7008f3b
Remove guards and specs for pre-3.3 behaviors
javanthropus 0749bb7
Add additional specs for binmode to verify behavior of other reader m…
javanthropus 40f33d2
Move spec for #set_encoding and #internal_encoding behavior to set_en…
javanthropus b9fa9e5
Use a test value that should trigger an error for pwrite on all platf…
javanthropus 5309d09
Remove erroneous, semi-duplicate code from set_encoding specs
javanthropus 68eaaf0
Use shorthand helper method to force a string to binary encoding (#b)
javanthropus 7a27d55
Remove tests for byte oriented read when character buffer is nonempty
javanthropus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.