diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-17 02:21:39 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-17 02:21:39 +0000 |
commit | d0a3c64fb4af21a911f2b7553bbddb45dd9e4484 (patch) | |
tree | a13f61d930df2858bf8da602ec0128910bec4582 /test/ruby/test_float.rb | |
parent | dd0fa838d94ad91b1ab993e41b7ad113aac3b3f5 (diff) | |
download | ruby-d0a3c64fb4af21a911f2b7553bbddb45dd9e4484.tar.gz |
* util.c (ruby_strtod): Float("1e") should fail. [ruby-core:7330]
* pack.c (EXTEND32): unpack("l") did not work where sizeof(long) != 4.
[ruby-talk:180024]
* pack.c (pack_unpack): fixed integer overflow on template "w".
[ruby-talk:180126]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_float.rb')
-rw-r--r-- | test/ruby/test_float.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb index fb180ff81b..63979b5be0 100644 --- a/test/ruby/test_float.rb +++ b/test/ruby/test_float.rb @@ -84,6 +84,7 @@ class TestFloat < Test::Unit::TestCase assert_raise(ArgumentError){Float("+.")} assert_raise(ArgumentError){Float("-")} assert_raise(ArgumentError){Float("-.")} + assert_raise(ArgumentError){Float("1e")} # add expected behaviour here. end end |