diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-13 02:39:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-13 02:39:03 +0000 |
commit | b847262c8fd07d520a048821154adfad0935c747 (patch) | |
tree | 67fc798fce72393e2ebfb0ff2989352f38795a08 | |
parent | 52e0ab245a1c7d446861f8882f741356b4d24bec (diff) |
* test/yaml/test_yaml.rb (YAML_Unit_Tests::test_spec_type_{int,float}):
fix syntax error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | test/yaml/test_yaml.rb | 8 |
2 files changed, 9 insertions, 6 deletions
@@ -1,3 +1,8 @@ +Tue Jan 13 11:38:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * test/yaml/test_yaml.rb (YAML_Unit_Tests::test_spec_type_{int,float}): + fix syntax error. + Tue Jan 13 07:52:40 2004 why the lucky stiff <why@ruby-lang.org> * ext/syck/bytecode.c: turn off default implicit typing. @@ -11,7 +16,7 @@ Tue Jan 13 07:52:40 2004 why the lucky stiff <why@ruby-lang.org> Tue Jan 13 04:29:52 2004 Dave Thomas <dave@pragprog.com> - * lib/rdoc/ri/ri_driver.rb (RiDriver::report_method_stuff): + * lib/rdoc/ri/ri_driver.rb (RiDriver::report_method_stuff): Show fully-qualified class names in class list. Tue Jan 13 01:24:17 2004 Yukihiro Matsumoto <matz@ruby-lang.org> diff --git a/test/yaml/test_yaml.rb b/test/yaml/test_yaml.rb index 674ecf8888..cdd678cf81 100644 --- a/test/yaml/test_yaml.rb +++ b/test/yaml/test_yaml.rb @@ -443,7 +443,7 @@ hexadecimal: 0xC EOY ) assert_parse_only( - { 'canonical' => 685230, 'decimal' => 685230, 'octal' => '02472256'.oct, 'hexadecimal' => '0x0A74AE'.hex, 'sexagesimal' => 685230 }, <<EOY + { 'canonical' => 685230, 'decimal' => 685230, 'octal' => 02472256, 'hexadecimal' => 0x0A74AE, 'sexagesimal' => 685230 }, <<EOY) canonical: 685230 decimal: +685,230 octal: 02472256 @@ -455,17 +455,15 @@ EOY def test_spec_type_float assert_parse_only( { 'canonical' => 1230.15, 'exponential' => 1230.15, 'fixed' => 1230.15, - 'negative infinity' => -1.0/0.0 }, <<EOY + 'negative infinity' => -1.0/0.0 }, <<EOY) canonical: 1.23015e+3 exponential: 12.3015e+02 fixed: 1,230.15 negative infinity: -.inf EOY - ) - nan = YAML::load( <<EOY + nan = YAML::load( <<EOY ) not a number: .NaN EOY - ) assert( nan['not a number'].nan? ) end |