diff --git a/test/ruby/test_complex2.rb b/test/ruby/test_complex2.rb index 4e960c3e36..3ee7810dc6 100644 --- a/test/ruby/test_complex2.rb +++ b/test/ruby/test_complex2.rb @@ -3,7 +3,7 @@ require 'test/unit' class Complex_Test2 < Test::Unit::TestCase def test_kumi - return unless defined?(Rational) + skip unless defined?(Rational) assert_equal(Complex(1, 0), +Complex(1, 0)) assert_equal(Complex(-1, 0), -Complex(1, 0)) diff --git a/test/ruby/test_complexrational.rb b/test/ruby/test_complexrational.rb index 47c535fca0..99f54e4e97 100644 --- a/test/ruby/test_complexrational.rb +++ b/test/ruby/test_complexrational.rb @@ -3,7 +3,7 @@ require 'test/unit' class ComplexRational_Test < Test::Unit::TestCase def test_rat_srat - return unless defined?(Rational) + skip unless defined?(Rational) c = SimpleRat(1,3) cc = Rational(3,2) @@ -88,7 +88,7 @@ class ComplexRational_Test < Test::Unit::TestCase end def test_comp_srat - return unless defined?(Rational) + skip unless defined?(Rational) c = Complex(SimpleRat(2,3),SimpleRat(1,2)) cc = Complex(Rational(3,2),Rational(2,1))