Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use rubyspec for stringscanner specs
- Loading branch information
1 parent
e6fe210
commit dbc0252
Showing
8 changed files
with
25 additions
and
165 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
opal_filter "StringScanner" do | ||
fails "StringScanner#[] calls to_int on the given index" | ||
fails "StringScanner#[] raises a TypeError if the given index is nil" | ||
fails "StringScanner#[] raises a TypeError when a Range is as argument" | ||
|
||
fails "StringScanner#get_byte is not multi-byte character sensitive" | ||
|
||
fails "StringScanner#pos returns the position of the scan pointer" | ||
fails "StringScanner#pos returns the position of the scan pointer for multibyte string" | ||
fails "StringScanner#pos returns 0 in the reset position" | ||
fails "StringScanner#pos returns the length of the string in the terminate position" | ||
fails "StringScanner#pos returns the `bytesize` for multibyte string in the terminate position" | ||
fails "StringScanner#pos= raises a RangeError if position too far backward" | ||
fails "StringScanner#pos= raises a RangeError when the passed argument is out of range" | ||
|
||
fails "StringScanner#scan returns the matched string for a multi byte string" | ||
fails "StringScanner#scan raises a TypeError if pattern isn't a Regexp" | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
spec/rubyspec/library/stringscanner/element_reference_spec.rb
This file was deleted.
Oops, something went wrong.
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