ruby-changes:2413
From: ko1@a...
Date: 13 Nov 2007 14:46:05 +0900
Subject: [ruby-changes:2413] why - Ruby:r13904 (trunk): * test/yaml/test_yaml.rb: fixed the failing YAML Struct test
why 2007-11-13 14:45:52 +0900 (Tue, 13 Nov 2007)
New Revision: 13904
Modified files:
trunk/ChangeLog
trunk/test/yaml/test_yaml.rb
Log:
* test/yaml/test_yaml.rb: fixed the failing YAML Struct test
at ko1's request.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13904&r2=13903
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/yaml/test_yaml.rb?r1=13904&r2=13903
Index: ChangeLog
===================================================================
--- ChangeLog (revision 13903)
+++ ChangeLog (revision 13904)
@@ -1,3 +1,8 @@
+Tue Nov 13 14:44:32 2007 why the lucky stiff <why@r...>
+
+ * test/yaml/test_yaml.rb: fixed the failing YAML Struct test
+ at ko1's request.
+
Tue Nov 13 02:57:04 2007 URABE Shyouhei <shyouhei@i...>
* numeric.c (flo_divmod): round to the nearest integer.
Index: test/yaml/test_yaml.rb
===================================================================
--- test/yaml/test_yaml.rb (revision 13903)
+++ test/yaml/test_yaml.rb (revision 13904)
@@ -1082,27 +1082,27 @@
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
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml