diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-16 03:05:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-16 03:05:34 +0000 |
commit | b0b1a2c377ee37578eaf6f0cbef105ca6265b827 (patch) | |
tree | 8c6e7d51095493560425dce9719246a96de38c95 /test/ruby/test_rational.rb | |
parent | f4c987021e3c54dff19c543cbebf8872ea84c9b5 (diff) | |
download | ruby-b0b1a2c377ee37578eaf6f0cbef105ca6265b827.tar.gz |
test_rational.rb: invalid exponent
* test/ruby/test_rational.rb (test_parse): more checks for invalid
exponent. [ruby-core:80098] [Bug #13105]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rational.rb')
-rw-r--r-- | test/ruby/test_rational.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_rational.rb b/test/ruby/test_rational.rb index 83a4a64879..ff2d189eff 100644 --- a/test/ruby/test_rational.rb +++ b/test/ruby/test_rational.rb @@ -726,6 +726,10 @@ class Rational_Test < Test::Unit::TestCase ok[500, 1, '5e2'] ok[5000, 1, '5e3'] ok[500000000000, 1, '5e1_1'] + ng[ 5, 1, '5e'] + ng[ 5, 1, '5e_'] + ng[ 5, 1, '5e_1'] + ng[50, 1, '5e1_'] ng[0, 1, ''] ng[0, 1, ' '] |