mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user