Unverified Commit b44326b5 authored by cremno's avatar cremno Committed by Yukihiro "Matz" Matsumoto

Add tests for CRuby bug #9982

https://bugs.ruby-lang.org/issues/9982
parent 8bd1bc47
#assert('Kernel.sprintf') do assert('sprintf invalid') do
#end assert_raise(ArgumentError) { sprintf('%1$*d', 3) }
assert_raise(ArgumentError) { sprintf('%1$.*d', 3) }
end
assert('String#%') do assert('String#%') do
assert_equal "one=1", "one=%d" % 1 assert_equal "one=1", "one=%d" % 1
......
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