From 4d249c28d9b736882ea26fd1494199733d4df68e Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 24 Apr 2021 12:04:08 +0900 Subject: Skip tests that use `Float` inside; ref #5421 --- mrbgems/mruby-pack/test/pack.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mrbgems/mruby-pack') diff --git a/mrbgems/mruby-pack/test/pack.rb b/mrbgems/mruby-pack/test/pack.rb index 6832adcc7..a248174a5 100644 --- a/mrbgems/mruby-pack/test/pack.rb +++ b/mrbgems/mruby-pack/test/pack.rb @@ -1,3 +1,4 @@ +# coding: utf-8 PACK_IS_LITTLE_ENDIAN = "\x01\00".unpack('S')[0] == 0x01 def assert_pack tmpl, packed, unpacked @@ -91,6 +92,7 @@ assert('issue #1') do end assert 'pack float' do + skip unless Object.const_defined?(:Float) assert_pack 'e', "\x00\x00@@", [3.0] assert_pack 'g', "@@\x00\x00", [3.0] @@ -104,6 +106,7 @@ assert 'pack float' do end assert 'pack double' do + skip unless Object.const_defined?(:Float) assert_pack 'E', "\x00\x00\x00\x00\x00\x00\b@", [3.0] assert_pack 'G', "@\b\x00\x00\x00\x00\x00\x00", [3.0] -- cgit v1.2.3