summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-string-ext/test/numeric.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-07-22 21:40:02 +0900
committerGitHub <[email protected]>2019-07-22 21:40:02 +0900
commit5166e316efc9bd211b3d950d3586a45b22a5f9d5 (patch)
treeea96b0f65909b42113851ded0647bc4586b22a8a /mrbgems/mruby-string-ext/test/numeric.rb
parentd2dd2d0e4874ac2522f12b1599842e6cc666088d (diff)
parentc980fe279266448cf5ac8faa646d57d0f8561b10 (diff)
downloadmruby-5166e316efc9bd211b3d950d3586a45b22a5f9d5.tar.gz
mruby-5166e316efc9bd211b3d950d3586a45b22a5f9d5.zip
Merge pull request #4591 from shuujii/integrate-Integral-chr-Fixnum-chr-to-mruby-string-ext
Integrate `Integral#chr` (`Fixnum#chr`) to `mruby-string-ext`
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