* test/yaml/test_yaml.rb: fixed the failing YAML Struct test
at ko1's request. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8d464a9948
commit
69c1181a9f
@ -1,3 +1,8 @@
|
|||||||
|
Tue Nov 13 14:44:32 2007 why the lucky stiff <why@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@ice.uec.ac.jp>
|
Tue Nov 13 02:57:04 2007 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
|
||||||
|
|
||||||
* numeric.c (flo_divmod): round to the nearest integer.
|
* numeric.c (flo_divmod): round to the nearest integer.
|
||||||
|
@ -1082,27 +1082,27 @@ EOY
|
|||||||
book_struct.new( "This should be the ISBN", "but I have another struct here", 2002, "None" )
|
book_struct.new( "This should be the ISBN", "but I have another struct here", 2002, "None" )
|
||||||
) ], <<EOY
|
) ], <<EOY
|
||||||
- !ruby/struct:BookStruct
|
- !ruby/struct:BookStruct
|
||||||
author: Yukihiro Matsumoto
|
:author: Yukihiro Matsumoto
|
||||||
title: Ruby in a Nutshell
|
:title: Ruby in a Nutshell
|
||||||
year: 2002
|
:year: 2002
|
||||||
isbn: 0-596-00214-9
|
:isbn: 0-596-00214-9
|
||||||
- !ruby/struct:BookStruct
|
- !ruby/struct:BookStruct
|
||||||
author:
|
:author:
|
||||||
- Dave Thomas
|
- Dave Thomas
|
||||||
- Andy Hunt
|
- Andy Hunt
|
||||||
title: The Pickaxe
|
:title: The Pickaxe
|
||||||
year: 2002
|
:year: 2002
|
||||||
isbn: !ruby/struct:BookStruct
|
:isbn: !ruby/struct:BookStruct
|
||||||
author: This should be the ISBN
|
:author: This should be the ISBN
|
||||||
title: but I have another struct here
|
:title: but I have another struct here
|
||||||
year: 2002
|
:year: 2002
|
||||||
isbn: None
|
:isbn: None
|
||||||
EOY
|
EOY
|
||||||
)
|
)
|
||||||
|
|
||||||
assert_to_yaml( YAML_Tests::StructTest.new( 123 ), <<EOY )
|
assert_to_yaml( YAML_Tests::StructTest.new( 123 ), <<EOY )
|
||||||
--- !ruby/struct:YAML_Tests::StructTest
|
--- !ruby/struct:YAML_Tests::StructTest
|
||||||
c: 123
|
:c: 123
|
||||||
EOY
|
EOY
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user