Unverified Commit 317fba47 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4588 from shuujii/fix-String-times-test-with-MRB_WITHOUT_FLOAT

Fix `String#*` test with `MRB_WITHOUT_FLOAT`
parents 94a1f488 9873d5e0
......@@ -37,13 +37,15 @@ end
assert('String#*', '15.2.10.5.5') do
assert_equal 'aaaaa', 'a' * 5
assert_equal '', 'a' * 0
assert_equal 'aa', 'a' * 2.1
assert_raise(ArgumentError) { 'a' * -1 }
assert_raise(TypeError) { 'a' * '1' }
assert_raise(TypeError) { 'a' * nil }
skip unless Object.const_defined?(:Float)
assert_equal 'aa', 'a' * 2.1
assert_raise(RangeError) { '' * 1e30 }
assert_raise(RangeError) { '' * Float::INFINITY }
assert_raise(RangeError) { '' * Float::NAN }
assert_raise(TypeError) { 'a' * '1' }
assert_raise(TypeError) { 'a' * nil }
end
assert('String#[]', '15.2.10.5.6') do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment