aboutsummaryrefslogtreecommitdiffstats
path: root/test/psych/test_scalar.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/test_scalar.rb')
-rw-r--r--test/psych/test_scalar.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/psych/test_scalar.rb b/test/psych/test_scalar.rb
index 4353ec33fa..e2f9ec791d 100644
--- a/test/psych/test_scalar.rb
+++ b/test/psych/test_scalar.rb
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# frozen_string_literal: false
+# frozen_string_literal: true
require_relative 'helper'
@@ -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