From 3f6eafaaa0707e11ef4b9fe5f13a1cc98de30388 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Thu, 5 Jun 2014 22:42:58 +0000 Subject: * ext/psych/lib/psych/visitors/yaml_tree.rb: dump empty symbols with a tag so that they can be parsed on input. [Bug #9873] [ruby-core:62825] * test/psych/test_symbol.rb: test for change git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/psych/test_symbol.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/psych/test_symbol.rb b/test/psych/test_symbol.rb index 2b4470d184..558a672886 100644 --- a/test/psych/test_symbol.rb +++ b/test/psych/test_symbol.rb @@ -2,6 +2,14 @@ require_relative 'helper' module Psych class TestSymbol < TestCase + def test_cycle_empty + assert_cycle :'' + end + + def test_cycle_colon + assert_cycle :':' + end + def test_cycle assert_cycle :a end -- cgit v1.2.3