summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-array-ext/test/array.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-04-03 20:33:21 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-04-03 20:33:21 +0900
commitfdf87b7a3f7912adcce9dae0c59e361627a851f4 (patch)
treec9bb5f18d8ba20bb57247ef07e125ee82eeabb12 /mrbgems/mruby-array-ext/test/array.rb
parent19c3c957fc195fdf0b90d84d1e4e8307594efc80 (diff)
parent6b6f893773562276438f2071073cf99bb27ccd7d (diff)
downloadmruby-fdf87b7a3f7912adcce9dae0c59e361627a851f4.tar.gz
mruby-fdf87b7a3f7912adcce9dae0c59e361627a851f4.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'mrbgems/mruby-array-ext/test/array.rb')
-rw-r--r--mrbgems/mruby-array-ext/test/array.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/mrbgems/mruby-array-ext/test/array.rb b/mrbgems/mruby-array-ext/test/array.rb
index ed1edb5c2..8c6a7bd54 100644
--- a/mrbgems/mruby-array-ext/test/array.rb
+++ b/mrbgems/mruby-array-ext/test/array.rb
@@ -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