summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-random
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-04-24 12:04:08 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-04-24 12:04:08 +0900
commit4d249c28d9b736882ea26fd1494199733d4df68e (patch)
tree37ef5326232e48f4e8173e9051ce67fe61618afb /mrbgems/mruby-random
parentf46b4056f844de8b182da070c301d2043bb1dac5 (diff)
downloadmruby-4d249c28d9b736882ea26fd1494199733d4df68e.tar.gz
mruby-4d249c28d9b736882ea26fd1494199733d4df68e.zip
Skip tests that use `Float` inside; ref #5421
Diffstat (limited to 'mrbgems/mruby-random')
-rw-r--r--mrbgems/mruby-random/test/random.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/mrbgems/mruby-random/test/random.rb b/mrbgems/mruby-random/test/random.rb
index f3067748b..37583c5d3 100644
--- a/mrbgems/mruby-random/test/random.rb
+++ b/mrbgems/mruby-random/test/random.rb
@@ -34,6 +34,7 @@ end
assert("return class of Kernel.rand") do
assert_kind_of(Integer, rand(3))
assert_kind_of(Integer, rand(1.5))
+ skip unless Object.const_defined?(:Float)
assert_kind_of(Float, rand)
assert_kind_of(Float, rand(0.5))
end