summaryrefslogtreecommitdiffstats
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
commit286e957c3b0aa72ad2ce6df2f6ab03acb051d530 (patch)
treede05602d34024b7b409522bb07fed93ae59d3cab /test/yaml
parent02411d9f7ef9eb434e9c32cd925a442c0e89b532 (diff)
downloadruby-286e957c3b0aa72ad2ce6df2f6ab03acb051d530.tar.gz
ruby-286e957c3b0aa72ad2ce6df2f6ab03acb051d530.tar.xz
ruby-286e957c3b0aa72ad2ce6df2f6ab03acb051d530.zip
* lib/yaml/rubytypes.rb (Symbol#yaml_new): YAML loading of quoted
Symbols broken. [ruby-Bugs:2535] (written by Aaron Schrab) git-svn-id: http://svn.ruby-lang.org/repos/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 fd91fa866..fe506675f 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__