Add tests for CRuby bug #9982

https://bugs.ruby-lang.org/issues/9982
This commit is contained in:
cremno
2014-08-03 22:18:25 +02:00
committed by Yukihiro "Matz" Matsumoto
parent 8bd1bc47b3
commit b44326b561
+4 -2
View File
@@ -1,5 +1,7 @@
#assert('Kernel.sprintf') do
#end
assert('sprintf invalid') do
assert_raise(ArgumentError) { sprintf('%1$*d', 3) }
assert_raise(ArgumentError) { sprintf('%1$.*d', 3) }
end
assert('String#%') do
assert_equal "one=1", "one=%d" % 1