ruby-changes:18707
From: nobu <ko1@a...>
Date: Sun, 30 Jan 2011 16:15:33 +0900 (JST)
Subject: [ruby-changes:18707] Ruby:r30733 (trunk): * test/dl/test_dl2.rb (TestDL#test_sin): math functions do not
nobu 2011-01-30 16:15:23 +0900 (Sun, 30 Jan 2011) New Revision: 30733 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30733 Log: * test/dl/test_dl2.rb (TestDL#test_sin): math functions do not work on x86_64 due to the design of DL2. * test/dl/test_func.rb (DL::TestFunc#test_{sinf,sin): ditto. Modified files: trunk/ChangeLog trunk/test/dl/test_dl2.rb trunk/test/dl/test_func.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30732) +++ ChangeLog (revision 30733) @@ -1,3 +1,10 @@ +Sun Jan 30 16:15:20 2011 Nobuyoshi Nakada <nobu@r...> + + * test/dl/test_dl2.rb (TestDL#test_sin): math functions do not + work on x86_64 due to the design of DL2. + + * test/dl/test_func.rb (DL::TestFunc#test_{sinf,sin): ditto. + Sun Jan 30 16:09:22 2011 Tanaka Akira <akr@f...> * strftime.c (rb_strftime_with_timespec): %G produces 4 digits. Index: test/dl/test_dl2.rb =================================================================== --- test/dl/test_dl2.rb (revision 30732) +++ test/dl/test_dl2.rb (revision 30733) @@ -95,6 +95,7 @@ end def test_sin + return if /x86_64/ =~ RUBY_PLATFORM pi_2 = Math::PI/2 cfunc = Function.new(CFunc.new(@libm['sin'], TYPE_DOUBLE, 'sin'), [TYPE_DOUBLE]) Index: test/dl/test_func.rb =================================================================== --- test/dl/test_func.rb (revision 30732) +++ test/dl/test_func.rb (revision 30733) @@ -22,6 +22,7 @@ end def test_sinf + return if /x86_64/ =~ RUBY_PLATFORM begin f = Function.new(CFunc.new(@libm['sinf'], TYPE_FLOAT, 'sinf'), [TYPE_FLOAT]) @@ -32,6 +33,7 @@ end def test_sin + return if /x86_64/ =~ RUBY_PLATFORM f = Function.new(CFunc.new(@libm['sin'], TYPE_DOUBLE, 'sin'), [TYPE_DOUBLE]) assert_in_delta 1.0, f.call(90 * Math::PI / 180), 0.0001 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/