Skip to content

Commit

Permalink
Add tests which passes all zero string to Kernel#Integer
Browse files Browse the repository at this point in the history
  • Loading branch information
syohex committed Jan 14, 2016
1 parent 4924856 commit 2a661ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mrbgems/mruby-kernel-ext/test/kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2a661ac

Please sign in to comment.