From c36a6370c7ac6090455191e674dc518f9f0c1c00 Mon Sep 17 00:00:00 2001 From: gogotanaka Date: Sat, 25 Oct 2014 20:14:05 -0700 Subject: [PATCH 3/3] Update test/ruby/test_complex.rb --- test/ruby/test_complex.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb index 1cbab2d..35dd86f 100644 --- a/test/ruby/test_complex.rb +++ b/test/ruby/test_complex.rb @@ -190,7 +190,10 @@ class Complex_Test < Test::Unit::TestCase 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?) -- 1.8.5.2 (Apple Git-48)