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.
This commit is contained in:
KOBAYASHI Shuji
2019-11-05 19:45:04 +09:00
parent 2166cc2e80
commit b5bb981959
-6
View File
@@ -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