Project

General

Profile

Feature #10378 » add_tests.patch

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

View differences:

test/ruby/test_complex.rb
c = Complex(1)
assert_equal(false, c.integer?)
assert_equal(false, c.real?)
assert_equal(true, c.real?)
assert_equal(true, Complex(1,1).real?)
assert_equal(false, Complex(0,1).real?)
assert_equal(true, Complex(0).zero?)
assert_equal(true, Complex(0,0).zero?)
(2-2/3)