Commit 9873d5e0 authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

Fix `String#*` test with `MRB_WITHOUT_FLOAT`

parent 94a1f488
......@@ -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