summaryrefslogtreecommitdiffstats
path: root/test/yaml
diff options
context:
space:
mode:
authorwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-13 05:45:52 +0000
committerwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-13 05:45:52 +0000
commit78a41d507c1a5527b6cac0b3d308e2e62b070a15 (patch)
tree0999ce3d29a67addf34a39c3dae3f8ed8bfab905 /test/yaml
parent8fd52acd7d22841cda421692f722c1e9bc789979 (diff)
downloadruby-78a41d507c1a5527b6cac0b3d308e2e62b070a15.tar.gz
ruby-78a41d507c1a5527b6cac0b3d308e2e62b070a15.tar.xz
ruby-78a41d507c1a5527b6cac0b3d308e2e62b070a15.zip
* test/yaml/test_yaml.rb: fixed the failing YAML Struct test
at ko1's request. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/yaml')
-rw-r--r--test/yaml/test_yaml.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/yaml/test_yaml.rb b/test/yaml/test_yaml.rb
index 676310e6f..393cbd760 100644
--- a/test/yaml/test_yaml.rb
+++ b/test/yaml/test_yaml.rb
@@ -1082,27 +1082,27 @@ EOY
book_struct.new( "This should be the ISBN", "but I have another struct here", 2002, "None" )
) ], <<EOY
- !ruby/struct:BookStruct
- author: Yukihiro Matsumoto
- title: Ruby in a Nutshell
- year: 2002
- isbn: 0-596-00214-9
+ :author: Yukihiro Matsumoto
+ :title: Ruby in a Nutshell
+ :year: 2002
+ :isbn: 0-596-00214-9
- !ruby/struct:BookStruct
- author:
+ :author:
- Dave Thomas
- Andy Hunt
- title: The Pickaxe
- year: 2002
- isbn: !ruby/struct:BookStruct
- author: This should be the ISBN
- title: but I have another struct here
- year: 2002
- isbn: None
+ :title: The Pickaxe
+ :year: 2002
+ :isbn: !ruby/struct:BookStruct
+ :author: This should be the ISBN
+ :title: but I have another struct here
+ :year: 2002
+ :isbn: None
EOY
)
assert_to_yaml( YAML_Tests::StructTest.new( 123 ), <<EOY )
--- !ruby/struct:YAML_Tests::StructTest
-c: 123
+:c: 123
EOY
end