Permalink
Browse files

Add tests which passes all zero string to Kernel#Integer

  • Loading branch information...
syohex committed Jan 14, 2016
1 parent 4924856 commit 2a661ac612c233045196fb11cb79e6e374a1680e
Showing with 2 additions and 0 deletions.
  1. +2 −0 mrbgems/mruby-kernel-ext/test/kernel.rb
@@ -22,6 +22,8 @@
assert_equal(26, Integer("0x1a"))
assert_equal(930, Integer("0930", 10))
assert_equal(7, Integer("111", 2))
assert_equal(0, Integer("0"))
assert_equal(0, Integer("00000"))
assert_raise(TypeError) { Integer(nil) }
end

0 comments on commit 2a661ac

Please sign in to comment.