mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
c980fe2792
Because they're defined in both `mruby-string-ext` and `mruby-numeric-ext` (they seem more natural to define in N, but `mruby-string-ext` depends on `Integral#chr`).
6 lines
125 B
Ruby
6 lines
125 B
Ruby
assert('Integer#chr') do
|
|
assert_equal("A", 65.chr)
|
|
assert_equal("B", 0x42.chr)
|
|
assert_raise(RangeError) { -1.chr }
|
|
end
|