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