aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/shared
Commit message (Collapse)AuthorAgeFilesLines
* Update to ruby/spec@4ce9f41Benoit Daloze2020-12-273-10/+18
|
* Use Integer instead of Fixnum/BignumNobuyoshi Nakada2020-12-216-17/+17
|
* Update to ruby/spec@ac878adBenoit Daloze2020-11-271-0/+5
|
* Make String methods return String instances when called on a subclass instanceJeremy Evans2020-11-201-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This modifies the following String methods to return String instances instead of subclass instances: * String#* * String#capitalize * String#center * String#chomp * String#chop * String#delete * String#delete_prefix * String#delete_suffix * String#downcase * String#dump * String#each/#each_line * String#gsub * String#ljust * String#lstrip * String#partition * String#reverse * String#rjust * String#rpartition * String#rstrip * String#scrub * String#slice! * String#slice/#[] * String#split * String#squeeze * String#strip * String#sub * String#succ/#next * String#swapcase * String#tr * String#tr_s * String#upcase This also fixes a bug in String#swapcase where it would return the receiver instead of a copy of the receiver if the receiver was the empty string. Some string methods were left to return subclass instances: * String#+@ * String#-@ Both of these methods will return the receiver (subclass instance) in some cases, so it is best to keep the returned class consistent. Fixes [#10845]
* Update to ruby/spec@b0b7f53Benoit Daloze2020-11-132-11/+41
|
* Update to ruby/spec@4f59d86Benoit Daloze2020-10-241-0/+24
|
* relax Fiber#transfer's restrictionKoichi Sasada2020-10-121-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Using Fiber#transfer with Fiber#resume for a same Fiber is limited (once Fiber#transfer is called for a fiber, the fiber can not be resumed more). This restriction was introduced to protect the resume/yield chain, but we realized that it is too much to protect the chain. Instead of the current restriction, we introduce some other protections. (1) can not transfer to the resuming fiber. (2) can not transfer to the yielding fiber. (3) can not resume transferred fiber. (4) can not yield from not-resumed fiber. [Bug #17221] Also at the end of a transferred fiber, it had continued on root fiber. However, if the root fiber resumed a fiber (and that fiber can resumed another fiber), this behavior also breaks the resume/yield chain. So at the end of a transferred fiber, switch to the edge of resume chain from root fiber. For example, root fiber resumed f1 and f1 resumed f2, transferred to f3 and f3 terminated, then continue from the fiber f2 (it was continued from root fiber without this patch).
* Make the test suite pass on real Android/Termux environmentYusuke Endoh2020-10-121-1/+5
| | | | Attempting to create a hard link raises EACCES
* Update to ruby/spec@e829fb0Benoit Daloze2020-09-172-0/+126
|
* Update to ruby/spec@07164daBenoit Daloze2020-07-272-19/+28
|
* Update to ruby/spec@4e486faBenoit Daloze2020-05-311-0/+6
|
* Update to ruby/spec@032ee74Benoit Daloze2020-05-031-1/+1
|
* [ruby/spec] Temporary directories should be under the mock_dirNobuyoshi Nakada2020-04-292-2/+2
|
* Drop support for ruby 2.4 from ruby/specNobuyoshi Nakada2020-04-013-68/+22
|
* spec/ruby: skip the specs that use /etc/passwd on AndroidYusuke Endoh2020-02-133-3/+6
| | | | There is no /etc/passwd on Android
* Deprecate taint/trust and related methods, and make the methods no-opsJeremy Evans2019-11-181-5/+7
| | | | | | 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@34e6246Benoit Daloze2019-09-294-6/+5
|
* Update to ruby/spec@875a09eBenoit Daloze2019-07-2732-127/+135
|
* Update to ruby/spec@8d74d49Benoit Daloze2019-06-272-6/+7
|
* Update to ruby/spec@7de852dBenoit Daloze2019-04-282-12/+8
|
* Update to ruby/spec@15c9619Benoit Daloze2019-04-272-27/+32
|
* Update to ruby/spec@e81b3cderegon2019-03-281-0/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@7a16e01eregon2019-02-211-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@35a9fbaeregon2019-01-206-210/+42
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@cdd6ff7eregon2018-11-2713-5/+311
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@8b743a3eregon2018-10-272-1/+24
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@241f9e7eregon2018-09-2533-1083/+27
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* compare with correct valuesnobu2018-06-171-3/+3
| | | | | | | * spec/ruby/shared/rational/exponent.rb: compare with mathematically expected values without errors. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@6f38a82eregon2018-04-281-9/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@c1b568beregon2018-03-0463-68/+68
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@83063a3eregon2018-01-294-25/+39
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* spec/: skip some specs so that no failure occurs in root privilegemame2018-01-101-1/+3
| | | | | | | Follow up of r61757, This change makes `sudo make test-spec` pass on my machine. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@0fe33aceregon2017-12-273-1/+66
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@bacedc5eregon2017-12-011-11/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@a6b8805eregon2017-10-284-12/+37
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@691755deregon2017-09-281-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Move spec/rubyspec to spec/ruby for consistencyeregon2017-09-20104-0/+4711
* 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