diff options
Diffstat (limited to 'test/psych/test_scalar.rb')
-rw-r--r-- | test/psych/test_scalar.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/psych/test_scalar.rb b/test/psych/test_scalar.rb index 4e45991..e2f9ec7 100644 --- a/test/psych/test_scalar.rb +++ b/test/psych/test_scalar.rb @@ -8,5 +8,10 @@ module Psych def test_utf_8 assert_equal "日本語", Psych.load("--- 日本語") end + + def test_some_bytes # Ticket #278 + x = "\xEF\xBF\xBD\x1F" + assert_cycle x + end end end |