summaryrefslogtreecommitdiff
path: root/test/psych/test_symbol.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/test_symbol.rb')
-rw-r--r--test/psych/test_symbol.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/psych/test_symbol.rb b/test/psych/test_symbol.rb
new file mode 100644
index 0000000000..83d8ca038e
--- /dev/null
+++ b/test/psych/test_symbol.rb
@@ -0,0 +1,17 @@
+require 'test/psych/helper'
+
+module Psych
+ class TestSymbol < TestCase
+ def test_cycle
+ assert_cycle :a
+ end
+
+ def test_stringy
+ assert_cycle :"1"
+ end
+
+ def test_load_quoted
+ assert_equal :"1", Psych.load("--- :'1'\n")
+ end
+ end
+end