summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-array-ext/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-01-30 10:33:47 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-01-30 10:33:47 +0900
commit00062780882ad54f800b19412a1412bb864109b8 (patch)
treee444b00182cc0657d6aa98c7c9e60b7575eb8b84 /mrbgems/mruby-array-ext/test
parent5346bdd76b3946a94efaea96ef10cbdbc5f8251e (diff)
downloadmruby-00062780882ad54f800b19412a1412bb864109b8.tar.gz
mruby-00062780882ad54f800b19412a1412bb864109b8.zip
move Array#[] tests from mrbgems to test/t/array.rb
Diffstat (limited to 'mrbgems/mruby-array-ext/test')
-rw-r--r--mrbgems/mruby-array-ext/test/array.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/mrbgems/mruby-array-ext/test/array.rb b/mrbgems/mruby-array-ext/test/array.rb
index 8a6f50fe4..1c441cec4 100644
--- a/mrbgems/mruby-array-ext/test/array.rb
+++ b/mrbgems/mruby-array-ext/test/array.rb
@@ -107,10 +107,3 @@ assert("Array#compact!") do
a.compact!
a == [1, "2", :t, false]
end
-
-assert("Array#[]") do
- a = [ "a", "b", "c", "d", "e" ]
- a[1.1] == "b" and
- a[1,2] == ["b", "c"] and
- a[1..-2] == ["b", "c", "d"]
-end