提交 7fde2619 编写于 作者: W wanabe

* test/dl/test_cfunc.rb (test_to_s): a result of sprintf("%x", ptr)

  may contain 0.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
上级 7e2fa5ad
......@@ -50,7 +50,7 @@ def test_name_should_be_duped
def test_to_s
s = @cf.to_s
assert s.tainted?, 'to_s should be tainted'
assert_match(/ptr=#{sprintf("0x%x", @cf.ptr)}/, s)
assert_match(/ptr=#{sprintf("0x0*%x", @cf.ptr)}/, s)
assert_match(/name='#{@cf.name}'/, s)
assert_match(/type=#{@cf.ctype}/, s)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册