summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-16 02:02:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-16 02:02:47 +0000
commit1a6f2391eac88bcaef6128420073ce2658965ed8 (patch)
tree2f5759d57e66090f633ba7202831f5f9f9ce454e
parentb296e29035a18e44c640a4f28f220169374f921a (diff)
test_rational.rb: duplicate assertions
* test/ruby/test_rational.rb (test_parse): remove duplicate assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_rational.rb36
1 files changed, 0 insertions, 36 deletions
diff --git a/test/ruby/test_rational.rb b/test/ruby/test_rational.rb
index ed4c5b1006..83a4a64879 100644
--- a/test/ruby/test_rational.rb
+++ b/test/ruby/test_rational.rb
@@ -727,42 +727,6 @@ class Rational_Test < Test::Unit::TestCase
ok[5000, 1, '5e3']
ok[500000000000, 1, '5e1_1']
- ok[ 5, 1, '5']
- ok[-5, 1, '-5']
- ok[ 5, 3, '5/3']
- ok[-5, 3, '-5/3']
-
- ok[ 5, 1, '5.0']
- ok[-5, 1, '-5.0']
- ok[ 5, 3, '5.0/3']
- ok[-5, 3, '-5.0/3']
-
- ok[ 5, 1, '5e0']
- ok[-5, 1, '-5e0']
- ok[ 5, 3, '5e0/3']
- ok[-5, 3, '-5e0/3']
-
- ok[ 5e1, 1, '5e1']
- ok[-5e2, 1, '-5e2']
- ok[ 5e3, 3, '5e003/3']
- ok[-5e4, 3, '-5e004/3']
-
- ok[ 33, 100, '.33']
- ok[ 33, 100, '0.33']
- ok[-33, 100, '-.33']
- ok[-33, 100, '-0.33']
- ok[-33, 100, '-0.3_3']
-
- ok[ 1, 2, '5e-1']
- ok[50, 1, '5e+1']
- ok[ 1, 2, '5.0e-1']
- ok[50, 1, '5.0e+1']
- ok[50, 1, '5e1']
- ok[50, 1, '5E1']
- ok[500, 1, '5e2']
- ok[5000, 1, '5e3']
- ok[500000000000, 1, '5e1_1']
-
ng[0, 1, '']
ng[0, 1, ' ']
ng[5, 1, "\f\n\r\t\v5\0"]