aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/array
Commit message (Collapse)AuthorAgeFilesLines
* Update to ruby/spec@07164daBenoit Daloze2020-07-271-1/+2
|
* Update to ruby/spec@b6b7752Benoit Daloze2020-06-271-0/+4
|
* Update to ruby/spec@4e486faBenoit Daloze2020-05-312-1/+7
|
* Update to ruby/spec@032ee74Benoit Daloze2020-05-039-33/+33
|
* Drop support for ruby 2.4 from ruby/specNobuyoshi Nakada2020-04-013-22/+8
|
* Use FrozenError instead of frozen_error_classNobuyoshi Nakada2020-04-0127-97/+97
|
* Update to ruby/spec@41bf282Benoit Daloze2020-02-281-2/+11
|
* Update to ruby/spec@f8a2d54Benoit Daloze2020-01-288-77/+195
|
* Removed useless "spec"sNobuyoshi Nakada2020-01-272-29/+0
| | | | | It is not specific to particular methods that keyword option arguments are coerced to `Hash`es using `to_hash` method.
* Moved Array#sample to rbincNobuyoshi Nakada2020-01-261-13/+16
|
* Moved Array#shuffle and Array#shuffle! to rbincNobuyoshi Nakada2020-01-261-4/+7
|
* Update to ruby/spec@dcf4955Benoit Daloze2019-12-011-0/+21
|
* Update to ruby/spec@4eec3dcBenoit Daloze2019-11-301-0/+18
|
* Deprecate taint/trust and related methods, and make the methods no-opsJeremy Evans2019-11-1819-399/+485
| | | | | | This removes the related tests, and puts the related specs behind version guards. This affects all code in lib, including some libraries that may want to support older versions of Ruby.
* Update to ruby/spec@875a09eBenoit Daloze2019-07-2766-285/+285
|
* Update to ruby/spec@94d98ffBenoit Daloze2019-06-274-6/+6
|
* Update to ruby/spec@8d74d49Benoit Daloze2019-06-2720-43/+52
|
* Remove spec testing undefined behaviorJeremy Evans2019-06-191-5/+0
| | | | Fixes [Bug #15432]
* Update to ruby/spec@15c9619Benoit Daloze2019-04-276-116/+104
|
* io.c: warn non-nil $,nobu2019-04-182-5/+9
| | | | | | | | * array.c (rb_ary_join_m): warn use of non-nil $,. * io.c (rb_output_fs_setter): warn when set to non-nil value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@7a16e01eregon2019-02-211-0/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Accept a third value for NaNs, as produced by the Sun Studio C Compilereregon2019-02-111-4/+12
| | | | | | * See http://rubyci.s3.amazonaws.com/solaris11s-sunc/ruby-trunk/log/20190211T142523Z.fail.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@6cf8ebeeregon2019-02-079-50/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@35a9fbaeregon2019-01-202-4/+37
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@944ea57eregon2018-12-296-161/+207
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@8b743a3eregon2018-10-2711-37/+102
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Spec: Fix spec/ruby/core/array/reject_spec.rb & miscmarcandre2018-10-162-9/+8
| | | | | | Patch by @MSP-Greg. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Enumerable#to_h with block and so onnobu2018-09-201-0/+7
| | | | | | [Feature #15143] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@9be7c7eeregon2018-08-031-0/+25
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@4bb0f25eregon2018-06-131-2/+2
| | | | | | * Specs added by TruffleRuby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@6f38a82eregon2018-04-286-305/+270
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@c1b568beregon2018-03-04125-316/+316
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@cbe855ceregon2018-02-276-17/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add a new #filter alias for #selecteregon2018-02-253-24/+48
| | | | | | | | | | | | | | | * In Enumerable, Enumerator::Lazy, Array, Hash and Set [Feature #13784] [ruby-core:82285] * Share specs for the various #select#select! methods and reuse them for #filter/#filter!. * Add corresponding filter tests for select tests. * Update NEWS. [Fix GH-1824] From: Alexander Patrick <adp90@case.edu> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@83063a3eregon2018-01-2913-22/+41
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@0fe33aceregon2017-12-2728-102/+99
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@bacedc5eregon2017-12-017-77/+102
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@a6b8805eregon2017-10-289-7/+115
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* array.c: improve operations on small arraysnobu2017-09-293-15/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Feature #13884] Reduce number of memory allocations for "and", "or" and "diff" operations on small arrays Very often, arrays are used to filter parameters and to select interesting items from 2 collections and very often these collections are small enough, for example: ```ruby SAFE_COLUMNS = [:id, :title, :created_at] def columns @all_columns & SAFE_COLUMNS end ``` In this patch, I got rid of unnecessary memory allocations for small arrays when "and", "or" and "diff" operations are performed. name | HEAD | PATCH -----------------+------:+------: array_small_and | 0.615 | 0.263 array_small_diff | 0.676 | 0.282 array_small_or | 0.953 | 0.463 name | PATCH -----------------+------: array_small_and | 2.343 array_small_diff | 2.392 array_small_or | 2.056 name | HEAD | PATCH -----------------+------:+------: array_small_and | 1.429 | 1.005 array_small_diff | 1.493 | 0.878 array_small_or | 1.672 | 1.152 name | PATCH -----------------+------: array_small_and | 1.422 array_small_diff | 1.700 array_small_or | 1.452 Author: Dmitry Bochkarev <dimabochkarev@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check_funcall_missing() should call respond_to_missing?(name, priv=true)eregon2017-09-201-4/+20
| | | | | | | * Improve spec rather than constrain implementation. * Coercion ignores visibility in Ruby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Move spec/rubyspec to spec/ruby for consistencyeregon2017-09-20137-0/+11414
* Other ruby implementations use the spec/ruby directory. [Misc #13792] [ruby-core:82287] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e