summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorCarson McDonald <[email protected]>2013-07-17 09:42:48 -0400
committerCarson McDonald <[email protected]>2013-07-17 09:42:48 -0400
commit7be117df4c0e9470e2c806e6132d57e98fbbc27b (patch)
treeebb36f0544a0ad59262f6760640b417391c71414
parent958d5b763df9cbfbf0173d35ba0ba27934f16394 (diff)
downloadmruby-7be117df4c0e9470e2c806e6132d57e98fbbc27b.tar.gz
mruby-7be117df4c0e9470e2c806e6132d57e98fbbc27b.zip
Fix string test for so that it works for int16
-rw-r--r--test/t/string.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/t/string.rb b/test/t/string.rb
index ddae92d4a..c208835b4 100644
--- a/test/t/string.rb
+++ b/test/t/string.rb
@@ -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