summaryrefslogtreecommitdiffstats
path: root/test
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
commit250d6e87e9bd582e63a13038180acf81ff1307fc (patch)
tree9059045c3af39186da8ab06586ed45c9607ccadb /test
parentc2803f5666c231680be7e8214722fa67cef902cb (diff)
downloadruby-250d6e87e9bd582e63a13038180acf81ff1307fc.tar.gz
ruby-250d6e87e9bd582e63a13038180acf81ff1307fc.tar.xz
ruby-250d6e87e9bd582e63a13038180acf81ff1307fc.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@25742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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 86ac6301a..522cbd425 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()