提交 5b8373da 编写于 作者: J Joshua Peek

Shush interpolation warnings

上级 3b6bb466
......@@ -316,8 +316,12 @@ def test_sprintf_lack_argument
end
def test_no_placeholder
assert_equal("aaa", "aaa" % {:num => 1})
assert_equal("bbb", "bbb" % [1])
# Causes a "too many arguments for format string" warning
# on 1.8.7 and 1.9 but we still want to make sure the behavior works
silence_warnings do
assert_equal("aaa", "aaa" % {:num => 1})
assert_equal("bbb", "bbb" % [1])
end
end
def test_sprintf_ruby19_style
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册