File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
spec/truffle/tags/core/string Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 1- fails:String#gsub with pattern and replacement treats \+ as an empty string if there was no captures
2- fails:String#gsub with pattern and block sets $~ for access from the block
3- fails:String#gsub with pattern and block restores $~ after leaving the block
4- passes:String#gsub with pattern and block converts the block's return value to a string using to_s
5- fails:String#gsub with pattern and replacement respects $KCODE when the pattern collapses
6- fails:String#gsub with pattern and replacement handles pattern collapse without $KCODE
1+ fails(regexp):String#gsub with pattern and block sets $~ for access from the block
2+ fails(regexp):String#gsub with pattern and block restores $~ after leaving the block
You can’t perform that action at this time.
0 commit comments