1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/dl/test_method.rb
naruse 676cf9b527 * test/dl/test_method.rb: sinf(3) is in libm.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-17 00:19:29 +00:00

11 lines
256 B
Ruby

require_relative 'test_base'
require 'dl/func'
module DL
class TestMethod < TestBase
def test_method_call
f = Method.new(@libm['sinf'], [TYPE_FLOAT], TYPE_FLOAT)
assert_in_delta 1.0, f.call(90 * Math::PI / 180), 0.0001
end
end
end