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.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/psych/test_scalar.rb b/test/psych/test_scalar.rb
new file mode 100644
index 0000000000..d951d70792
--- /dev/null
+++ b/test/psych/test_scalar.rb
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+
+require 'test/psych/helper'
+
+module Psych
+ class TestScalar < TestCase
+ def test_utf_8
+ assert_equal "日本語", Psych.load("--- 日本語")
+ end
+ end
+end