mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Improve test of mruby-numeric-ext GEM
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user