summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-string-ext/test/numeric.rb
diff options
context:
space:
mode:
Diffstat (limited to 'mrbgems/mruby-string-ext/test/numeric.rb')
-rw-r--r--mrbgems/mruby-string-ext/test/numeric.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/mrbgems/mruby-string-ext/test/numeric.rb b/mrbgems/mruby-string-ext/test/numeric.rb
new file mode 100644
index 000000000..cae562fc1
--- /dev/null
+++ b/mrbgems/mruby-string-ext/test/numeric.rb
@@ -0,0 +1,5 @@
+assert('Integer#chr') do
+ assert_equal("A", 65.chr)
+ assert_equal("B", 0x42.chr)
+ assert_raise(RangeError) { -1.chr }
+end