mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
test fails when we don't have Enumerator.
This commit is contained in:
@@ -139,5 +139,10 @@ assert("Array#reverse_each") do
|
||||
b << i
|
||||
end
|
||||
assert_equal [ "d", "c", "b", "a" ], b
|
||||
assert_equal [ "d", "c", "b", "a" ], a.reverse_each.to_a
|
||||
|
||||
if Object.const_defined?(:Enumerator)
|
||||
assert_equal [ "d", "c", "b", "a" ], a.reverse_each.to_a
|
||||
else
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user