Commit 52aafcd0 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #3743 from christopheraue/sprintf_d_tests

added tests for #3736
parents 59eaad9d 2730231e
......@@ -91,6 +91,12 @@ assert("String#% %b") do
assert_equal("..10115", "%0b5" % -5)
end
assert("String#% %d") do
assert_equal(" 10", "%4d" % 10)
assert_equal("1000", "%4d" % 1000)
assert_equal("100000", "%4d" % 100000)
end
assert("String#% invalid format") do
assert_raise ArgumentError do
"%?" % ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment