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/array.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/array.rb')
| -rw-r--r-- | test/t/array.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/t/array.rb b/test/t/array.rb index 53fbdcf1a..c182d5e14 100644 --- a/test/t/array.rb +++ b/test/t/array.rb @@ -55,9 +55,10 @@ assert('Array#[]', '15.2.12.5.4') do assert_equal(nil, [1,2,3].[](-4)) a = [ "a", "b", "c", "d", "e" ] - assert_equal("b", a[1.1]) if class_defined?("Float") assert_equal(["b", "c"], a[1,2]) assert_equal(["b", "c", "d"], a[1..-2]) + skip unless Object.const_defined?(:Float) + assert_equal("b", a[1.1]) end assert('Array#[]=', '15.2.12.5.5') do |
