summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_string.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb
index e5aa2251a7..4970af15e4 100644
--- a/test/ruby/test_string.rb
+++ b/test/ruby/test_string.rb
@@ -1389,13 +1389,14 @@ CODE
assert_equal([], "".split(//, 1))
assert_equal("[2, 3]", [1,2,3].slice!(1,10000).inspect, "moved from btest/knownbug")
+ ensure
+ $; = fs
+ end
- $; = []
+ def test_fs
assert_raise_with_message(TypeError, /\$;/) {
- "".split
+ $; = []
}
- ensure
- $; = fs
end
def test_split_encoding