-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #655 from topazproject/tim/String#scan
Missing String#scan
- Loading branch information
Showing
3 changed files
with
75 additions
and
16 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 |
---|---|---|
@@ -1,22 +1,6 @@ | ||
fails:String#scan returns an array containing all matches | ||
fails:String#scan respects $KCODE when the pattern collapses to nothing | ||
fails:String#scan stores groups as arrays in the returned arrays | ||
fails:String#scan scans for occurrences of the string if pattern is a string | ||
fails:String#scan sets $~ to MatchData of last match and nil when there's none | ||
fails:String#scan supports \G which matches the end of the previous match / string start for first match | ||
fails:String#scan tries to convert pattern to a string via to_str | ||
fails:String#scan raises a TypeError if pattern isn't a Regexp and can't be converted to a String | ||
fails:String#scan taints the results if the String argument is tainted | ||
fails:String#scan taints the results when passed a String argument if self is tainted | ||
fails:String#scan taints the results if the Regexp argument is tainted | ||
fails:String#scan taints the results when passed a Regexp argument if self is tainted | ||
fails:String#scan with pattern and block returns self | ||
fails:String#scan with pattern and block passes each match to the block as one argument: an array | ||
fails:String#scan with pattern and block passes groups to the block as one argument: an array | ||
fails:String#scan with pattern and block sets $~ for access from the block | ||
fails:String#scan with pattern and block restores $~ after leaving the block | ||
fails:String#scan with pattern and block sets $~ to MatchData of last match and nil when there's none for access from outside | ||
fails:String#scan with pattern and block taints the results if the String argument is tainted | ||
fails:String#scan with pattern and block taints the results when passed a String argument if self is tainted | ||
fails:String#scan with pattern and block taints the results if the Regexp argument is tainted | ||
fails:String#scan with pattern and block taints the results when passed a Regexp argument if self is tainted |
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