diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-01-03 11:34:35 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-01-03 11:34:35 +0900 |
| commit | cca19532c5f71e1bdc0b4947b2fcddd181f27781 (patch) | |
| tree | c65545fead5be8f7c7a5d4010fc12c4823751d55 /test/t/hash.rb | |
| parent | f9d89e3fa592706de6a6dee701af3961df914292 (diff) | |
| download | mruby-cca19532c5f71e1bdc0b4947b2fcddd181f27781.tar.gz mruby-cca19532c5f71e1bdc0b4947b2fcddd181f27781.zip | |
Remove `Kernel#class_defined?` which is not available in CRuby; #3829
Diffstat (limited to 'test/t/hash.rb')
| -rw-r--r-- | test/t/hash.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/t/hash.rb b/test/t/hash.rb index 8088bfa21..e3f917b6f 100644 --- a/test/t/hash.rb +++ b/test/t/hash.rb @@ -8,8 +8,9 @@ end assert('Hash#==', '15.2.13.4.1') do assert_true({ 'abc' => 'abc' } == { 'abc' => 'abc' }) assert_false({ 'abc' => 'abc' } == { 'cba' => 'cba' }) - assert_true({ :equal => 1 } == { :equal => 1.0 }) if class_defined?("Float") assert_false({ :a => 1 } == true) + skip unless Object.const_defined?(:Float) + assert_true({ :equal => 1 } == { :equal => 1.0 }) end assert('Hash#[]', '15.2.13.4.2') do |
