diff options
-rw-r--r-- | test/ruby/test_complex.rb | 6 | ||||
-rw-r--r-- | test/ruby/test_rational.rb | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb index d5a8a18524..74d6d5dd8a 100644 --- a/test/ruby/test_complex.rb +++ b/test/ruby/test_complex.rb @@ -824,13 +824,13 @@ class Complex_Test < Test::Unit::TestCase def test_to_c c = nil.to_c - assert_equal([0,0] , [c.real, c.imag]) + assert_equal([0,0], [c.real, c.imag]) c = 0.to_c - assert_equal([0,0] , [c.real, c.imag]) + assert_equal([0,0], [c.real, c.imag]) c = 1.to_c - assert_equal([1,0] , [c.real, c.imag]) + assert_equal([1,0], [c.real, c.imag]) c = 1.1.to_c assert_equal([1.1, 0], [c.real, c.imag]) diff --git a/test/ruby/test_rational.rb b/test/ruby/test_rational.rb index 703d56a2ab..cb7b58b417 100644 --- a/test/ruby/test_rational.rb +++ b/test/ruby/test_rational.rb @@ -920,20 +920,20 @@ class Rational_Test < Test::Unit::TestCase def test_to_r c = nil.to_r - assert_equal([0,1] , [c.numerator, c.denominator]) + assert_equal([0,1], [c.numerator, c.denominator]) c = 0.to_r - assert_equal([0,1] , [c.numerator, c.denominator]) + assert_equal([0,1], [c.numerator, c.denominator]) c = 1.to_r - assert_equal([1,1] , [c.numerator, c.denominator]) + assert_equal([1,1], [c.numerator, c.denominator]) c = 1.1.to_r assert_equal([2476979795053773, 2251799813685248], [c.numerator, c.denominator]) c = Rational(1,2).to_r - assert_equal([1,2] , [c.numerator, c.denominator]) + assert_equal([1,2], [c.numerator, c.denominator]) if @complex if @keiju |