From f7612e981450f6df3b898c9611b9e9144c81cd43 Mon Sep 17 00:00:00 2001 From: gogotanaka Date: Sat, 8 Nov 2014 03:26:52 -0800 Subject: [PATCH 3/3] Ajust test --- test/ruby/test_complex.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb index 1cbab2d..5cbbaab 100644 --- a/test/ruby/test_complex.rb +++ b/test/ruby/test_complex.rb @@ -943,9 +943,9 @@ class Complex_Test < Test::Unit::TestCase assert_in_delta(0.804, c.real, 0.001) assert_in_delta(1.107, c.imag, 0.001) - c = CMath.log(Complex(1, 2), Math::E) - assert_in_delta(0.804, c.real, 0.001) - assert_in_delta(1.107, c.imag, 0.001) + c = CMath.log(Complex(1, 2), Math::E**2) + assert_in_delta(0.402, c.real, 0.001) + assert_in_delta(0.5535, c.imag, 0.001) c = CMath.log(-1) assert_in_delta(0.0, c.real, 0.001) -- 1.9.3 (Apple Git-50)