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/numeric.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/numeric.rb')
| -rw-r--r-- | test/t/numeric.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/t/numeric.rb b/test/t/numeric.rb index 38c62a669..9d6dc22cc 100644 --- a/test/t/numeric.rb +++ b/test/t/numeric.rb @@ -15,7 +15,8 @@ end assert('Numeric#abs', '15.2.7.4.3') do assert_equal(1, 1.abs) - assert_equal(1.0, -1.abs) if class_defined?("Float") + skip unless Object.const_defined?(:Float) + assert_equal(1.0, -1.abs) end assert('Numeric#pow') do |
