mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/dl/test_func.rb (test_strtod): strtod test should not rely on
memory layout git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b2a34a1ecf
commit
f0e0b77864
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ module DL
|
|||
def test_strtod()
|
||||
f = Function.new(CFunc.new(@libc['strtod'], TYPE_DOUBLE, 'strtod'),
|
||||
[TYPE_VOIDP, TYPE_VOIDP])
|
||||
buff1 = "12.34"
|
||||
buff2 = " "
|
||||
buff1 = CPtr["12.34"]
|
||||
buff2 = buff1 + 4
|
||||
r = f.call(buff1, buff2)
|
||||
assert_match(12.00..13.00, r)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue