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 | a441e89c78b6f4bac2c7ca2370f885f1e8ea33cb (patch) | |
tree | 8c6e7d51095493560425dce9719246a96de38c95 /test | |
parent | 1a6f2391eac88bcaef6128420073ce2658965ed8 (diff) | |
download | ruby-a441e89c78b6f4bac2c7ca2370f885f1e8ea33cb.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')
-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, ' '] |