-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
563 additions
and
30 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
fails:ARGF.binmode returns self | ||
fails:ARGF.binmode does not raise an error | ||
fails:ARGF.binmode sets the file's encoding to ASCII-8BIT | ||
fails:ARGF.binmode puts reading into binmode | ||
fails:ARGF.binmode puts alls subsequent stream reading through ARGF into binmode |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
fails:ARGF.codepoints is a public method | ||
fails:ARGF.codepoints does not require arguments | ||
fails:ARGF.codepoints returns self when passed a block | ||
fails:ARGF.codepoints returns an Enumerator when passed no block | ||
fails:ARGF.codepoints yields each codepoint of all streams |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
fails:ARGF.each_codepoint is a public method | ||
fails:ARGF.each_codepoint does not require arguments | ||
fails:ARGF.each_codepoint returns self when passed a block | ||
fails:ARGF.each_codepoint returns an Enumerator when passed no block | ||
fails:ARGF.each_codepoint yields each codepoint of all streams |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
fails:ARGF.each_line is a public method | ||
fails:ARGF.each_line requires multiple arguments | ||
fails:ARGF.each_line reads each line of files | ||
fails:ARGF.each_line returns self when passed a block | ||
fails:ARGF.each_line returns an Enumerator when passed no block | ||
fails:ARGF.each_line with a separator yields each separated section of all streams |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
fails:ARGF.each is a public method | ||
fails:ARGF.each requires multiple arguments | ||
fails:ARGF.each reads each line of files | ||
fails:ARGF.each returns self when passed a block | ||
fails:ARGF.each returns an Enumerator when passed no block | ||
fails:ARGF.each with a separator yields each separated section of all streams |
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
fails:ARGF.lines is a public method | ||
fails:ARGF.lines requires multiple arguments | ||
fails:ARGF.lines reads each line of files | ||
fails:ARGF.lines returns self when passed a block | ||
fails:ARGF.lines returns an Enumerator when passed no block | ||
fails:ARGF.lines with a separator yields each separated section of all streams |
This file contains 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
fails:ARGF.seek sets the absolute position relative to beginning of file | ||
fails:ARGF.seek sets the position relative to current position in file | ||
fails:ARGF.seek sets the absolute position relative to end of file | ||
fails:ARGF.seek takes at least one argument (offset) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
fails:ARGF.skip skips the current file | ||
fails:ARGF.skip has no effect when called twice in a row | ||
fails:ARGF.skip has no effect at end of stream | ||
fails:ARGF.skip has no effect when the current file is the last |
This file was deleted.
Oops, something went wrong.
This file contains 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 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.
af179e5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this passes some of the specs - do you know if the basic functionality actually works though?
af179e5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrisseaton It looks like some basic functionality is working, here are 3 examples:
Read stdin:
Read args:
File argf.rb:
Read file:
File argf2.rb:
af179e5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice Quine for the third one!