Merge pull request #1389 from carsonmcdonald/stringtestfix

Fix string test for so that it works for int16
This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-07-18 19:20:02 -07:00
+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