summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-array-ext/test/array.rb
AgeCommit message (Collapse)Author
2019-10-14Add `Array#intersection` which is new in Ruby2.7.Yukihiro "Matz" Matsumoto
2019-10-14Fixed a bug in `Array#difference`.Yukihiro "Matz" Matsumoto
2019-09-16Add `Array#difference` method from Ruby2.6.Yukihiro "Matz" Matsumoto
2019-09-01`Array#permutation` with a negative argument should not yieldKOBAYASHI Shuji
Before this patch: $ bin/mruby -e '[1].permutation(-1){|v| p v}' #=> [1] After this patch (same as Ruby): $ bin/mruby -e '[1].permutation(-1){|v| p v}' #=> no output
2019-08-30`Array#(permutation|combination)` without block should return `self`KOBAYASHI Shuji
2019-07-25Refine `Array#(permutation|combination) test`KOBAYASHI Shuji
- No guarantees about the order in which the permutations/combinations are yielded. - Drop dependency on `Enumerator`.
2019-05-31Comment out the empty `Array#bsearch_index` testKOBAYASHI Shuji
2018-11-19Removed `to_ary` conversion method.Yukihiro "Matz" Matsumoto
2018-11-19Removed `try_convert` method from Array and Hash.Yukihiro "Matz" Matsumoto
2018-09-21Implement `Array#union` which is introduced in Ruby2.6.Yukihiro "Matz" Matsumoto
2018-09-07Clear terminated spacedearblue
2017-11-17implement Array.transposeTomasz Dąbrowski
2017-10-20Add `Array#{permutation,combination}.Yukihiro "Matz" Matsumoto
2017-07-28Added Array#bsearch_indexChristopher Aue
2017-07-28Refactored Array#bsearchChristopher Aue
2017-07-28Tested Array#bsearch more thoroughlyChristopher Aue
2017-03-28Implement Array#slice!Kenji Okimoto
2016-11-16Fixed a memory problem in Array#to_hYukihiro "Matz" Matsumoto
Reported from Alex Snaps via Mathieu Leduc-Hamel, both from shopify.com. Thank you!
2016-03-23add #dig testsYukihiro "Matz" Matsumoto
2015-11-24add {Array|Hash|String}.try_converttakahashim
2015-10-01Array#index to take block; fix #2968 close #2970Yukihiro "Matz" Matsumoto
2014-06-02Add Array#to_hMitsutaka Mimura
2014-05-25no one uses Array.try_convert, so removed it that discourages duck typing; ↵Yukihiro "Matz" Matsumoto
close #2317
2014-05-02Implement Struct#values_at and Array#values_at .take_cheeze
Add API `mrb_get_values_at()` to mruby/range.h .
2014-04-30remove trailing spacesNobuyoshi Nakada
2014-04-27Add Array#select_bangJun Hiroe
2014-04-25Add Array#keep_ifJun Hiroe
2014-04-25resolve conflictYukihiro "Matz" Matsumoto
2014-04-24Add Array#delete_ifJun Hiroe
2014-04-24Array#fill fix bug when argument use range objectksss
2014-04-24Add Array#bsearchJun Hiroe
2014-04-23Add Array#insertJun Hiroe
2014-04-21 Add Array#reject_bangJun Hiroe
2014-04-21Add Array#delete_ifJun Hiroe
2014-04-18Add a block argument with Array#uniqJun Hiroe
2014-04-18Add a block argument with Array#uniq_bangJun Hiroe
2014-04-12Add Array#uniq_bang testJun Hiroe
2014-04-12Refactor array test to use assert_xxx methodJun Hiroe
2014-04-12Add Array#rotate_bangJun Hiroe
2014-04-11Array#rotateJun Hiroe
2014-04-03test fails when we don't have Enumerator.Tomoyuki Sahara
2014-03-30Fix method nameKazuki Tsujimoto
2014-03-29Add Array#fillJun Hiroe
2014-03-28Add Array#fetchJun Hiroe
2014-01-30move Array#[] tests from mrbgems to test/t/array.rbYukihiro "Matz" Matsumoto
2014-01-10Added rewrite of Array#[] to mruby-array-ext gem, so that arrays can be slicedPaolo Bosetti
with Ranges (as a[1..-2])
2013-03-22add method(uniq, -, |, &, flatten, compact) and test of Array to mruby-array-extKouki Ooyatsu
2013-03-15rename methodskandhas
2013-03-15add mrbgem: mrb-array-extskandhas