diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-24 12:04:08 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-24 12:04:08 +0900 |
| commit | 4d249c28d9b736882ea26fd1494199733d4df68e (patch) | |
| tree | 37ef5326232e48f4e8173e9051ce67fe61618afb /mrbgems/mruby-pack | |
| parent | f46b4056f844de8b182da070c301d2043bb1dac5 (diff) | |
| download | mruby-4d249c28d9b736882ea26fd1494199733d4df68e.tar.gz mruby-4d249c28d9b736882ea26fd1494199733d4df68e.zip | |
Skip tests that use `Float` inside; ref #5421
Diffstat (limited to 'mrbgems/mruby-pack')
| -rw-r--r-- | mrbgems/mruby-pack/test/pack.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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] |
