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
This commit is contained in:
nobu 2017-03-16 03:05:34 +00:00
parent 1a6f2391ea
commit a441e89c78

View File

@ -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, ' ']