|
66 | 66 | fails "String#gsub with pattern and replacement treats \\+ as an empty string if there was no captures" |
67 | 67 | fails "String#gsub with pattern and replacement maps \\\\ in replacement to \\" |
68 | 68 | fails "String#gsub with pattern and replacement handles pattern collapse without $KCODE" |
69 | | - fails "String#gsub with pattern and replacement untrusts the result if the original string or replacement is untrusted" |
70 | 69 | fails "String#gsub with pattern and replacement raises a TypeError when replacement can't be converted to a string" |
71 | 70 | fails "String#gsub with pattern and replacement sets $~ to MatchData of last match and nil when there's none" |
72 | 71 | fails "String#gsub with pattern and Hash returns a copy of self with all occurrences of pattern replaced with the value of the corresponding hash key" |
|
80 | 79 | fails "String#gsub with pattern and Hash uses the hash's value set from default_proc for missing keys" |
81 | 80 | fails "String#gsub with pattern and Hash sets $~ to MatchData of last match and nil when there's none for access from outside" |
82 | 81 | fails "String#gsub with pattern and Hash doesn't interpolate special sequences like \\1 for the block's return value" |
83 | | - fails "String#gsub with pattern and Hash untrusts the result if the original string is untrusted" |
84 | | - fails "String#gsub with pattern and Hash untrusts the result if a hash value is untrusted" |
85 | 82 | fails "String#gsub with pattern and block sets $~ for access from the block" |
86 | 83 | fails "String#gsub with pattern and block restores $~ after leaving the block" |
87 | 84 | fails "String#gsub with pattern and block sets $~ to MatchData of last match and nil when there's none for access from outside" |
88 | | - fails "String#gsub with pattern and block untrusts the result if the original string or replacement is untrusted" |
89 | | - fails "String#gsub with pattern and block uses the compatible encoding if they are compatible" |
90 | | - fails "String#gsub with pattern and block raises an Encoding::CompatibilityError if the encodings are not compatible" |
91 | | - fails "String#gsub with pattern and block replaces the incompatible part properly even if the encodings are not compatible" |
92 | 85 |
|
93 | 86 | fails "String#index raises a TypeError if passed a Symbol" |
94 | 87 |
|
|
197 | 190 | fails "String#split with Regexp returns a type error if limit can't be converted to an integer" |
198 | 191 | fails "String#split with Regexp returns subclass instances based on self" |
199 | 192 | fails "String#split with Regexp does not call constructor on created subclass instances" |
200 | | - fails "String#split with Regexp retains the encoding of the source string" |
201 | | - fails "String#split with Regexp returns an ArgumentError if an invalid UTF-8 string is supplied" |
202 | 193 |
|
203 | 194 | fails "String#start_with? ignores arguments not convertible to string" |
204 | 195 | fails "String#start_with? converts its argument using :to_str" |
|
0 commit comments