Skip to content

Commit

Permalink
Fix for sprintf test exceeding bounds with MRB_INT16
Browse files Browse the repository at this point in the history
  • Loading branch information
dabroz committed Nov 20, 2016
1 parent 3ce51cb commit 4289e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrbgems/mruby-sprintf/test/sprintf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
assert_equal "one=1", "one=%d" % 1
assert_equal "1 one 1.0", "%d %s %3.1f" % [ 1, "one", 1.01 ]
assert_equal "123 < 456", "%{num} < %<str>s" % { num: 123, str: "456" }
assert_equal 16, ("%b" % (1<<15)).size
assert_equal 15, ("%b" % (1<<14)).size
end

0 comments on commit 4289e0c

Please sign in to comment.