ruby-changes:20270
From: naruse <ko1@a...>
Date: Thu, 30 Jun 2011 12:36:46 +0900 (JST)
Subject: [ruby-changes:20270] naruse:r32317 (trunk): Refix test introduced by r32307.
naruse 2011-06-30 12:27:08 +0900 (Thu, 30 Jun 2011) New Revision: 32317 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32317 Log: Refix test introduced by r32307. Modified files: trunk/test/test_cmath.rb Index: test/test_cmath.rb =================================================================== --- test/test_cmath.rb (revision 32316) +++ test/test_cmath.rb (revision 32317) @@ -7,9 +7,7 @@ end def test_acos - c = CMath.acos(Complex(3, 4)) - assert_in_delta 0.9368124611557199, c.real - assert_in_delta -2.305509031243477, c.imag + assert_in_delta (CMath.acos(Complex(3, 4)) - Complex(0.9368124611557199,-2.305509031243477)).abs2, 0 end def test_cbrt_returns_principal_value_of_cube_root -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/