Fix string test for so that it works for int16

This commit is contained in:
Carson McDonald
2013-07-17 09:42:48 -04:00
parent 958d5b763d
commit 7be117df4c
+2 -2
View File
@@ -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