summaryrefslogtreecommitdiff
path: root/test/yaml
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-10 03:05:40 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-10 03:05:40 +0000
commit163224f639a17980319ca6cd1942a7159b233b81 (patch)
treede05602d34024b7b409522bb07fed93ae59d3cab /test/yaml
parentf825f3508ea109ae8f21c94fec9a0ff20c96d7aa (diff)
* lib/yaml/rubytypes.rb (Symbol#yaml_new): YAML loading of quoted
Symbols broken. [ruby-Bugs:2535] (written by Aaron Schrab) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/yaml')
-rw-r--r--test/yaml/test_yaml.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/yaml/test_yaml.rb b/test/yaml/test_yaml.rb
index fd91fa8..fe50667 100644
--- a/test/yaml/test_yaml.rb
+++ b/test/yaml/test_yaml.rb
@@ -1225,6 +1225,17 @@ EOY
inspect_str = "[[...], [...]]"
assert_equal( inspect_str, YAML::load( a.to_yaml ).inspect )
end
+
+ #
+ # Test Symbol cycle
+ #
+ def test_symbol_cycle
+ #
+ # From Aaron Schrab [ruby-Bugs:2535]
+ #
+ assert_cycle(:"^foo")
+ end
+
end
if $0 == __FILE__