diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-23 01:15:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-23 01:15:04 +0000 |
commit | 98aff0edce3d8f6126787f4b16eba5e8194fc2db (patch) | |
tree | 6c53001c7239f072d3b68112c74226f8bcd86183 /test/ruby/test_string.rb | |
parent | bbffcb58a33aef7de3347cdb2b034f8a5d2eb01e (diff) | |
download | ruby-98aff0edce3d8f6126787f4b16eba5e8194fc2db.tar.gz |
string.c: rb_fs_setter
* string.c (rb_fs_setter): check and convert $; value at
assignment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_string.rb')
-rw-r--r-- | test/ruby/test_string.rb | 9 |
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 |