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:
parent
4704bc0976
commit
96c8964e0e
1 changed files with 4 additions and 0 deletions
|
@ -814,6 +814,10 @@ class TestMarshal < Test::Unit::TestCase
|
||||||
assert_raise(ArgumentError, /\(given 1, expected 0\)/) {
|
assert_raise(ArgumentError, /\(given 1, expected 0\)/) {
|
||||||
ruby2_keywords_test(*[hash2])
|
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
|
end
|
||||||
|
|
||||||
def test_invalid_byte_sequence_symbol
|
def test_invalid_byte_sequence_symbol
|
||||||
|
|
Loading…
Add table
Reference in a new issue