summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-array-ext/test/array.rb
diff options
context:
space:
mode:
authorChristopher Aue <[email protected]>2017-07-28 17:08:35 +0200
committerChristopher Aue <[email protected]>2017-07-28 23:51:49 +0200
commita3bfd735a041078cd9497c739fb3e21efc0c36f0 (patch)
treed55e69124bc8b201f3a44143379d4c4deda69902 /mrbgems/mruby-array-ext/test/array.rb
parent451574f1420d8533f44a06d9aca23b5647292228 (diff)
downloadmruby-a3bfd735a041078cd9497c739fb3e21efc0c36f0.tar.gz
mruby-a3bfd735a041078cd9497c739fb3e21efc0c36f0.zip
Added Array#bsearch_index
Diffstat (limited to 'mrbgems/mruby-array-ext/test/array.rb')
-rw-r--r--mrbgems/mruby-array-ext/test/array.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/mrbgems/mruby-array-ext/test/array.rb b/mrbgems/mruby-array-ext/test/array.rb
index 401d30a5e..c0db1b1cc 100644
--- a/mrbgems/mruby-array-ext/test/array.rb
+++ b/mrbgems/mruby-array-ext/test/array.rb
@@ -267,6 +267,10 @@ assert("Array#bsearch") do
end
end
+assert("Array#bsearch_index") do
+ # tested through Array#bsearch
+end
+
assert("Array#delete_if") do
a = [1, 2, 3, 4, 5]
assert_equal [1, 2, 3, 4, 5], a.delete_if { false }