diff options
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_string.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index c8b9aeb597..d2099607fd 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -169,6 +169,10 @@ CODE assert_equal(nil, S("\u{3042 3044 3046}")[RbConfig::LIMITS["LONG_MIN"], 1]) end + def test_AREF_invalid_encoding + assert_equal(S("\x80"), S("A"*39+"\x80")[-1, 1]) + end + def test_ASET # '[]=' s = S("FooBar") s[0] = S('A') |
