ruby-changes:45914
From: nobu <ko1@a...>
Date: Thu, 16 Mar 2017 12:05:39 +0900 (JST)
Subject: [ruby-changes:45914] nobu:r57987 (trunk): test_rational.rb: invalid exponent
nobu 2017-03-16 12:05:34 +0900 (Thu, 16 Mar 2017) New Revision: 57987 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57987 Log: test_rational.rb: invalid exponent * test/ruby/test_rational.rb (test_parse): more checks for invalid exponent. [ruby-core:80098] [Bug #13105] Modified files: trunk/test/ruby/test_rational.rb Index: test/ruby/test_rational.rb =================================================================== --- test/ruby/test_rational.rb (revision 57986) +++ test/ruby/test_rational.rb (revision 57987) @@ -726,6 +726,10 @@ class Rational_Test < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rational.rb#L726 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, ' '] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/