diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-11-05 19:45:04 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-11-05 19:45:04 +0900 |
| commit | b5bb9819596f2cf30950d1634f022bba3d466fcc (patch) | |
| tree | b1cb9a5dbab6a174bffffb8cc796f92ef857d40b /mrbgems/mruby-array-ext | |
| parent | 2166cc2e80ad9523f86220373b4b3f2a83eee15d (diff) | |
| download | mruby-b5bb9819596f2cf30950d1634f022bba3d466fcc.tar.gz mruby-b5bb9819596f2cf30950d1634f022bba3d466fcc.zip | |
Remove test that depend on `mruby-enumerator` from `mruby-array-ext`
`Object.const_defined?(:Enumerator)` is always false because
`mruby-enumerator` is not specified in `test_dependency`. I don't
think this test is necessary.
Diffstat (limited to 'mrbgems/mruby-array-ext')
| -rw-r--r-- | mrbgems/mruby-array-ext/test/array.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/mrbgems/mruby-array-ext/test/array.rb b/mrbgems/mruby-array-ext/test/array.rb index cb76559c7..51172f9a8 100644 --- a/mrbgems/mruby-array-ext/test/array.rb +++ b/mrbgems/mruby-array-ext/test/array.rb @@ -195,12 +195,6 @@ assert("Array#reverse_each") do b << i end assert_equal [ "d", "c", "b", "a" ], b - - if Object.const_defined?(:Enumerator) - assert_equal [ "d", "c", "b", "a" ], a.reverse_each.to_a - else - true - end end assert("Array#rotate") do |
