Bug #3815: dl2 - DL::Function TYPE_DOUBLE packing/unpacking problem
http://redmine.ruby-lang.org/issues/show/3815

Author: Hiroshi NAKAMURA
Status: Open, Priority: Normal
Category: ext
ruby -v: ruby 1.9.3dev (2010-09-10 trunk 29209) [x86_64-linux]

assert(64bit)
assert(no_fiddle)

0% ruby -v
ruby 1.9.3dev (2010-09-10 trunk 29209) [x86_64-linux]
0% ruby test/runner.rb test/dl
Test run options: --seed 53947

Loaded suite test/runner
Started
.........................................................F.........FF.........................................
Finished in 0.183267 seconds.

  1) Failure:
test_sin(DL::TestDL) [/home/nahi/svn/ruby/current/test/dl/test_dl2.rb:102]:
<1.0> expected but was
<1.38523885234213e-309>.

  2) Failure:
test_sin(DL::TestFunc) [/home/nahi/svn/ruby/current/test/dl/test_func.rb:37]:
Expected 1.0 - 1.38523885234213e-309 (1.0) to be < 0.0001.

  3) Failure:
test_sinf(DL::TestFunc) [/home/nahi/svn/ruby/current/test/dl/test_func.rb:31]:
Expected 1.0 - 0.0 (1.0) to be < 0.0001.

110 tests, 200 assertions, 3 failures, 0 errors, 0 skips

Test run options: --seed 53947


----------------------------------------
http://redmine.ruby-lang.org