summaryrefslogtreecommitdiff
path: root/test/dl/test_func.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-12 22:41:07 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-12 22:41:07 +0000
commit17ccd5d013fa7ffd612aea4c9babdfb37fec213d (patch)
tree9059045c3af39186da8ab06586ed45c9607ccadb /test/dl/test_func.rb
parentd109e9a67fde86e1b3dc1cebdea318355c5c8a1b (diff)
* ext/dl/cptr.c (rb_dlptr_s_to_ptr): when wrapping a pointer it should
keep a reference to the object it's wrapping * test/dl/test_func.rb use standard test methods git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dl/test_func.rb')
-rw-r--r--test/dl/test_func.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dl/test_func.rb b/test/dl/test_func.rb
index 86ac6301a4..522cbd4257 100644
--- a/test/dl/test_func.rb
+++ b/test/dl/test_func.rb
@@ -36,7 +36,7 @@ module DL
buff1 = CPtr["12.34"]
buff2 = buff1 + 4
r = f.call(buff1, buff2)
- assert_match(12.00..13.00, r)
+ assert_in_delta(12.34, r, 0.001)
end
def test_qsort1()