Improve test of mruby-numeric-ext GEM

This commit is contained in:
Daniel Bovensiepen
2013-08-04 22:41:26 +08:00
parent b4e07a8051
commit 9a7efd69ee
+2 -2
View File
@@ -2,8 +2,8 @@
# Numeric(Ext) Test
assert('Integer#chr') do
assert_equal(65.chr, "A")
assert_equal(0x42.chr, "B")
assert_equal("A", 65.chr)
assert_equal("B", 0x42.chr)
# multibyte encoding (not support yet)
assert_raise(RangeError) { 12345.chr }