summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-enumerator/test
AgeCommit message (Collapse)Author
2021-04-24Skip tests that use `Float` inside; ref #5421Yukihiro "Matz" Matsumoto
2020-12-15refactor: remove trailing whitespace from C, Header, Ruby and YAML filesJohn Bampton
Lint
2020-10-12Reorganize `Integer` system.Yukihiro "Matz" Matsumoto
- Integrate `Fixnum` and `Integer` - Remove `Integral` - `int / int -> int` - Replace `mrb_fixnum()` to `mrb_int()` - Replace `mrb_fixnum_value()` to `mrb_int_value()`. - Use `mrb_integer_p()` instead of `mrb_fixnum_p()`
2019-09-13Update `assert_take` for zero size take.Yukihiro "Matz" Matsumoto
2019-09-13Add `Enumerator.produce` from Ruby2.7Yukihiro "Matz" Matsumoto
2019-07-28Drop dependency from `mruby-enumerator` to `mruby-enum-ext`KOBAYASHI Shuji
2019-02-08Add `NoMethodError` tests to `mruby-enumerator`KOBAYASHI Shuji
2019-02-08Update `mruby-enumerator` test to conform the last update.Yukihiro "Matz" Matsumoto
2019-02-08Fix `Enumerator#(initialize|inspect)` for `nil`/`false`KOBAYASHI Shuji
2018-11-19Remove implicit conversion using `to_int` method.Yukihiro "Matz" Matsumoto
The ISO standard does not include implicit type conversion using `to_int`. This implicit conversion often causes vulnerability. There will be no more attacks like #4120. In addition, we have added internal convenience method `__to_int` which does type check and conversion (from floats).
2018-11-19Check method existence for Enumerators; fix #3920Yukihiro "Matz" Matsumoto
The issue #3920 was fixed but the fundamental flaw of lack of stack depth check along with fibers still remains, even though it's not easy to cause the issue. Use `MRB_GC_FIXED_ARENA` to avoid the issue for workaround. After this patch, `obj.to_enum` raises `ArgumentError` if the object does not respond to the enumerating method. This is incompatible to CRuby but I think this behavior is better and CRuby should be updated to behave like this.
2018-03-27Reimplement `Enumerable#zip` with Enumeratorksss
for fix some specs - [passes each element of the result array to a block and return nil if a block is given](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L11-L17) - [converts arguments to arrays using #to_ary](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L23-L27) - [converts arguments to enums using #to_enum](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L29-L34) - [gathers whole arrays as elements when each yields multiple](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L36-L39)
2017-11-22Some cosmetic changesYukihiro "Matz" Matsumoto
2017-10-28Change the order of "expected" and "actual" in testYukihiro "Matz" Matsumoto
2017-03-30Fix Enumerator#each_with_index with blockKenji Okimoto
In previous version, ``` a = [3, 2, 1] e = a.each e.sort_by(&:to_i) # => [] ``` In this version, ``` a = [3, 2, 1] e = a.each e.sort_by(&:to_i) # => [1, 2, 3] ```
2016-12-01Support svalueksss
2015-10-21loop may return StopIteration#result; [ruby-bugs#11498]Yukihiro "Matz" Matsumoto
2014-04-30remove trailing spacesNobuyoshi Nakada
2014-04-06Add args in Enumerator#inspectJun Hiroe
2014-03-23Hash#{reject,reject!} fix yield valueksss
2014-03-23Hash#{select,select!} fix yield valueksss
2014-03-23Hash#each_{key,value} support return Enumeratorksss
if non block given
2014-03-19Merge pull request #1882 from ksss/enum-find_allYukihiro "Matz" Matsumoto
Enumerable#find_all return Enumerator if non block given
2014-03-17Enumerable#find_all return Enumerator if non block givenksss
2014-03-17Enumrable#each_with_index return Enumerator if non block givenksss
2014-03-15add test for Array#each_index if non block givenksss
2014-03-15fix variable name typoksss
2014-03-15test split and to detailksss
2014-03-15fix self modifying bugksss
2014-03-15fix return value for with_indexksss
2014-03-13add mruby-enumeratorksss