mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #1389 from carsonmcdonald/stringtestfix
Fix string test for so that it works for int16
This commit is contained in:
+2
-2
@@ -399,12 +399,12 @@ end
|
||||
|
||||
assert('String#to_i', '15.2.10.5.38') do
|
||||
a = ''.to_i
|
||||
b = '123456789'.to_i
|
||||
b = '32143'.to_i
|
||||
c = 'a'.to_i(16)
|
||||
d = '100'.to_i(2)
|
||||
|
||||
assert_equal a, 0
|
||||
assert_equal b, 123456789
|
||||
assert_equal b, 32143
|
||||
assert_equal c, 10
|
||||
assert_equal d, 4
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user