summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-numeric-ext
diff options
context:
space:
mode:
authorDaniel Bovensiepen <[email protected]>2013-08-04 22:41:26 +0800
committerDaniel Bovensiepen <[email protected]>2013-08-04 22:41:26 +0800
commit9a7efd69ee51d2b06f3efee1407ab720cf0ef2fd (patch)
tree1d9c6213036b8fccb387ce71d23a181286f814e9 /mrbgems/mruby-numeric-ext
parentb4e07a805192cf3fedb72bbe04137fdafa5e8133 (diff)
downloadmruby-9a7efd69ee51d2b06f3efee1407ab720cf0ef2fd.tar.gz
mruby-9a7efd69ee51d2b06f3efee1407ab720cf0ef2fd.zip
Improve test of mruby-numeric-ext GEM
Diffstat (limited to 'mrbgems/mruby-numeric-ext')
-rw-r--r--mrbgems/mruby-numeric-ext/test/numeric.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-numeric-ext/test/numeric.rb b/mrbgems/mruby-numeric-ext/test/numeric.rb
index 6c1cf0fce..7d85eaaa2 100644
--- a/mrbgems/mruby-numeric-ext/test/numeric.rb
+++ b/mrbgems/mruby-numeric-ext/test/numeric.rb
@@ -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 }