mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
11 lines
256 B
Ruby
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
|