Project

General

Profile

Feature #10378 ยป add_tests.patch

gogotanaka (Kazuki Tanaka), 10/26/2014 03:19 AM

View differences:

test/ruby/test_complex.rb
190 190
    c = Complex(1)
191 191
    assert_equal(false, c.integer?)
192
    assert_equal(false, c.real?)
192

  
193
    assert_equal(true, c.real?)
194
    assert_equal(true, Complex(1,1).real?)
195
    assert_equal(false, Complex(0,1).real?)
193 196
    assert_equal(true, Complex(0).zero?)
194 197
    assert_equal(true, Complex(0,0).zero?)
195
-