ruby-changes:68093
From: Nobuyoshi <ko1@a...>
Date: Thu, 23 Sep 2021 22:05:03 +0900 (JST)
Subject: [ruby-changes:68093] 96c8964e0e (master): Revive the test using US-ASCII incompatible symbol
https://git.ruby-lang.org/ruby.git/commit/?id=96c8964e0e From 96c8964e0e65bb6e232f1da6b4725404cf4f4540 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 23 Sep 2021 19:33:48 +0900 Subject: Revive the test using US-ASCII incompatible symbol --- test/ruby/test_marshal.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb index 58831f3..f7f273a 100644 --- a/test/ruby/test_marshal.rb +++ b/test/ruby/test_marshal.rb @@ -814,6 +814,10 @@ class TestMarshal < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_marshal.rb#L814 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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/