From 250d6e87e9bd582e63a13038180acf81ff1307fc Mon Sep 17 00:00:00 2001 From: tenderlove Date: Thu, 12 Nov 2009 22:41:07 +0000 Subject: * 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 --- test/dl/test_func.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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() -- cgit