Skip to content

Commit c25d417

Browse files
committed
[Truffle] Mass handling of operations on String subclasses.
1 parent 96f3641 commit c25d417

File tree

17 files changed

+33
-32
lines changed

17 files changed

+33
-32
lines changed

spec/truffle/tags/core/string/byteslice_tags.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
fails:String#capitalize is locale insensitive (only upcases a-z and only downcases A-Z)
2-
fails:String#capitalize returns subclass instances when called on a subclass
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
fails:String#downcase is locale insensitive (only replaces A-Z)
2-
fails:String#downcase returns a subclass instance for subclasses
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
fails:String#dump returns a subclass instance
21
fails:String#dump includes .force_encoding(name) if the encoding isn't ASCII compatible

spec/truffle/tags/core/string/each_line_tags.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

spec/truffle/tags/core/string/element_reference_tags.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
fails:String#[] with index, length returns subclass instances
2-
fails:String#[] with Range returns subclass instances
31
fails:String#[] with Range calls to_int on range arguments
42
fails:String#[] with Range works with Range subclasses
53
fails:String#[] with Regexp returns subclass instances

spec/truffle/tags/core/string/gsub_tags.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ fails:String#gsub! with pattern and block uses the compatible encoding if they a
99
fails:String#gsub! with pattern and block replaces the incompatible part properly even if the encodings are not compatible
1010
fails:String#gsub with pattern and replacement respects $KCODE when the pattern collapses
1111
fails:String#gsub with pattern and replacement handles pattern collapse without $KCODE
12-
fails:String#gsub with pattern and replacement returns subclass instances when called on a subclass

spec/truffle/tags/core/string/lines_tags.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

spec/truffle/tags/core/string/slice_tags.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
fails:String#slice with index, length returns subclass instances
2-
fails:String#slice with Range returns subclass instances
31
fails:String#slice with Range calls to_int on range arguments
42
fails:String#slice with Range works with Range subclasses
53
fails:String#slice with Regexp returns subclass instances
@@ -14,7 +12,6 @@ fails:String#slice! with index, length always taints resulting strings when self
1412
fails:String#slice! with index, length calls to_int on idx and length
1513
fails:String#slice! with index, length returns subclass instances
1614
fails:String#slice! with index, length returns the substring given by the character offsets
17-
fails:String#slice! Range returns subclass instances
1815
fails:String#slice! Range calls to_int on range arguments
1916
fails:String#slice! Range works with Range subclasses
2017
fails:String#slice! Range returns the substring given by the character offsets of the range

spec/truffle/tags/core/string/sub_tags.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
fails:String#sub with pattern, replacement treats \+ as an empty string if there was no captures
2-
fails:String#sub with pattern, replacement returns subclass instances when called on a subclass
32
fails:String#sub with pattern and block sets $~ for access from the block
43
fails:String#sub! with pattern and block sets $~ for access from the block
54
fails:String#sub! with pattern and block raises a RuntimeError if the string is modified while substituting

0 commit comments

Comments
 (0)