summaryrefslogtreecommitdiff
path: root/test/ruby/test_string.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2022-01-08 14:25:36 +0900
committerNobuyoshi Nakada <[email protected]>2022-01-08 14:47:49 +0900
commitfb532d801cc2a4d771eb049976d0e0f03090d220 (patch)
tree5ad3cdcf748d06e4283639a41c37a4dbb67764a1 /test/ruby/test_string.rb
parent64eccbf578b82b30299418444a1b77027c2abdd9 (diff)
Run an old fixed bug in the same process
Diffstat (limited to 'test/ruby/test_string.rb')
-rw-r--r--test/ruby/test_string.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb
index 52e83ebc1f..31f9a646a3 100644
--- a/test/ruby/test_string.rb
+++ b/test/ruby/test_string.rb
@@ -2657,7 +2657,10 @@ CODE
end
def test_gsub_enumerator
- assert_normal_exit %q{"abc".gsub(/./).next}, "[ruby-dev:34828]"
+ e = S("abc").gsub(/./)
+ assert_equal("a", e.next, "[ruby-dev:34828]")
+ assert_equal("b", e.next)
+ assert_equal("c", e.next)
end
def test_clear_nonasciicompat