1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Revive the test using US-ASCII incompatible symbol

This commit is contained in:
Nobuyoshi Nakada 2021-09-23 19:33:48 +09:00
parent 4704bc0976
commit 96c8964e0e
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -814,6 +814,10 @@ class TestMarshal < Test::Unit::TestCase
assert_raise(ArgumentError, /\(given 1, expected 0\)/) {
ruby2_keywords_test(*[hash2])
}
hash2 = Marshal.load(data.sub(/:\x06K(?=T\z)/, "I\\&\x06:\x0dencoding\"\x0aUTF-7"))
assert_raise(ArgumentError, /\(given 1, expected 0\)/) {
ruby2_keywords_test(*[hash2])
}
end
def test_invalid_byte_sequence_symbol