summaryrefslogtreecommitdiff
path: root/spec/ruby/library
Commit message (Collapse)AuthorAgeFilesLines
* Update to ruby/spec@7f6ca5bBenoit Daloze2023-04-251-0/+1
|
* Update to ruby/spec@7f69c86Benoit Daloze2023-04-259-0/+400
|
* Skip when unix socket path is too longNobuyoshi Nakada2023-04-211-1/+3
| | | | | Eventually the path directly under "/tmp" is complained by `rm_r` in spec/mspec/lib/mspec/helpers/fs.rb.
* Update to ruby/spec@e7dc804Benoit Daloze2023-02-2790-36/+119
|
* Use `BigDecimal::VERSION` instead of `RUBY_VERSION`Nobuyoshi Nakada2023-02-221-1/+1
|
* BigDecimal changed #remainder's specTakashi Kokubun2023-02-171-13/+15
| | | | | | | | | | | | | | This test is no longer passing: ``` 1) BigDecimal#remainder returns NaN if Infinity is involved FAILED Expected Infinity.nan? to be truthy but was false /home/runner/work/ruby/ruby/src/spec/ruby/library/bigdecimal/remainder_spec.rb:58:in `block (2 levels) in <top (required)>' /home/runner/work/ruby/ruby/src/spec/ruby/library/bigdecimal/remainder_spec.rb:4:in `<top (required)>' ``` https://github.com/ruby/bigdecimal/pull/243
* blade is hosted under ruby-lang.org nowHiroshi SHIBATA2023-01-231-1/+1
|
* More coverage tests & specs. (#7171)Samuel Williams2023-01-221-1/+7
| | | | | * Add spec for eval and line coverage. * Add test for main file coverage.
* * remove trailing spaces, append newline at EOF. [ci skip]git2023-01-052-2/+2
|
* Update to ruby/spec@9d69b95Benoit Daloze2023-01-058-8/+158
|
* Remove `require 'io/wait'` where it's no longer necessary. (#6932)Samuel Williams2022-12-152-2/+6
| | | | | | | * Remove `require 'io/wait'` as it's part of core now. * Update ruby specs using version gates. * Add note about why it's conditional.
* update rbconfig spec to Unicode version 15.0.0Martin Dürst2022-12-062-4/+4
| | | | (this includes emoji version 15.0)
* Use valid tokens as cookie namesNobuyoshi Nakada2022-11-222-11/+11
|
* Deal with different Ruby versionsTakashi Kokubun2022-11-121-2/+10
|
* Fix a CI failure in bigdecimalTakashi Kokubun2022-11-121-1/+1
|
* Update to ruby/spec@740ccc8Benoit Daloze2022-11-0747-654/+60
|
* Add spec for `Coverage.supported?` and `start(eval: true)`. (#6499)Samuel Williams2022-10-081-5/+25
| | | * Don't emit coverage for eval when eval coverage is disabled.
* Add IO#timeout attribute and use it for blocking IO operations. (#5653)Samuel Williams2022-10-071-1/+9
|
* Skip unpack_sockaddr_in with http at Solaris platformHiroshi SHIBATA2022-09-291-3/+5
| | | | http://rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20220929T050003Z.fail.html.gz
* Update to ruby/spec@1d9d5c6Benoit Daloze2022-09-286-12/+59
|
* Revert this until we can figure out WB issues or remove shapes from GCAaron Patterson2022-09-261-1/+1
| | | | | | | | | | Revert "* expand tabs. [ci skip]" This reverts commit 830b5b5c351c5c6efa5ad461ae4ec5085e5f0275. Revert "This commit implements the Object Shapes technique in CRuby." This reverts commit 9ddfd2ca004d1952be79cf1b84c52c79a55978f4.
* This commit implements the Object Shapes technique in CRuby.Jemma Issroff2022-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Object Shapes is used for accessing instance variables and representing the "frozenness" of objects. Object instances have a "shape" and the shape represents some attributes of the object (currently which instance variables are set and the "frozenness"). Shapes form a tree data structure, and when a new instance variable is set on an object, that object "transitions" to a new shape in the shape tree. Each shape has an ID that is used for caching. The shape structure is independent of class, so objects of different types can have the same shape. For example: ```ruby class Foo def initialize # Starts with shape id 0 @a = 1 # transitions to shape id 1 @b = 1 # transitions to shape id 2 end end class Bar def initialize # Starts with shape id 0 @a = 1 # transitions to shape id 1 @b = 1 # transitions to shape id 2 end end foo = Foo.new # `foo` has shape id 2 bar = Bar.new # `bar` has shape id 2 ``` Both `foo` and `bar` instances have the same shape because they both set instance variables of the same name in the same order. This technique can help to improve inline cache hits as well as generate more efficient machine code in JIT compilers. This commit also adds some methods for debugging shapes on objects. See `RubyVM::Shape` for more details. For more context on Object Shapes, see [Feature: #18776] Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org> Co-Authored-By: Eileen M. Uchitelle <eileencodes@gmail.com> Co-Authored-By: John Hawthorn <john@hawthorn.email>
* Enable coverage for eval.Samuel Williams2022-09-221-9/+25
|
* Update to ruby/spec@b8a8240Benoit Daloze2022-08-292-2/+4
|
* Update to ruby/spec@d01709fBenoit Daloze2022-08-297-5/+75
|
* [Bug #18946] New tests for fixed Time/DateTime conversionsNobuyoshi Nakada2022-08-082-0/+26
|
* [Bug #18946] Use Gregorian dates to testNobuyoshi Nakada2022-08-082-4/+4
|
* Update to ruby/spec@cbfaf51Benoit Daloze2022-07-271-0/+6
|
* Relax `not_before` limitNobuyoshi Nakada2022-07-021-1/+1
| | | | Use the value as similar as other tests below. Trying to fix sporadic “not yet valid” failures on some CIs.
* Fix TODO in stringio/truncate_spec.rbNobuyoshi Nakada2022-07-011-12/+3
|
* stop CI failures.Koichi Sasada2022-07-011-2/+3
| | | | | | 302f353fd9223d020e48495eaa7a03ce5d539409 seems break the rubyspec. @nobu please check it.
* Add more check to debug failuresKazuhiro NISHIYAMA2022-06-301-1/+1
|
* Update to ruby/spec@ab32a1aBenoit Daloze2022-06-269-69/+261
|
* Update rubyspec for stringio bug fixJeremy Evans2022-05-291-5/+16
|
* Update to ruby/spec@3affe1eBenoit Daloze2022-04-2547-716/+47
|
* Update to ruby/spec@aaf998fBenoit Daloze2022-03-282-4/+4
|
* clarify meaning of version guards for Unicode version specs [ci skip]Martin Dürst2022-03-142-12/+14
|
* Fix guards for unicode versions specsBenoit Daloze2022-03-132-10/+10
|
* comment out failing Unicode/Emoji version checks temporarilyMartin Dürst2022-03-132-10/+10
|
* update specs to check for Unicode Version 14.0.0/Emoji Version 14.0Martin Dürst2022-03-132-0/+12
|
* Deprecate the unintentional ability to parse `Symbol`Nobuyoshi Nakada2022-02-262-10/+1
|
* Update to ruby/spec@902ab83Benoit Daloze2022-01-283-2/+55
|
* Update to ruby/spec@226cfdcBenoit Daloze2022-01-101-0/+7
|
* Skip bind port 1 when ip_unprivileged_port_start<=1Kazuhiro NISHIYAMA2021-12-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Linux can allow to bind port 1 to user. And `ip_unprivileged_port_start` is 0 on [lima](https://github.com/lima-vm/lima) default vm. ``` 1) Socket#bind on SOCK_DGRAM socket raises Errno::EACCES when the current user does not have permission to bind FAILED Expected Errno::EACCES but no exception was raised (0 was returned) .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:38:in `block (4 levels) in <top (required)>' .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:4:in `<top (required)>' 2) Socket#bind on SOCK_STREAM socket raises Errno::EACCES when the current user does not have permission to bind FAILED Expected Errno::EACCES but no exception was raised (0 was returned) .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:79:in `block (4 levels) in <top (required)>' .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:44:in `<top (required)>' 3) Socket#bind using IPv4 using a packed socket address raises Errno::EACCES when the user is not allowed to bind to the port FAILED Expected Errno::EACCES but no exception was raised (0 was returned) .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:119:in `block (6 levels) in <top (required)>' .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:85:in `<top (required)>' 4) Socket#bind using IPv6 using a packed socket address raises Errno::EACCES when the user is not allowed to bind to the port FAILED Expected Errno::EACCES but no exception was raised (0 was returned) .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:119:in `block (6 levels) in <top (required)>' .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:85:in `<top (required)>' ```
* Update to ruby/spec@7f22a0bBenoit Daloze2021-11-2915-38/+93
|
* Revert "Temporary ignored the failing specs for Date"Yusuke Endoh2021-11-161-9/+5
| | | | | | This reverts commit 17e64cca6b737060884f6fd9ab1c5055e9b49577. The specs should work now.
* Temporary ignored the failing specs for DateHiroshi SHIBATA2021-11-161-5/+9
|
* Make Coverage suspendable (#4856)Yusuke Endoh2021-10-251-5/+18
| | | | | | | * Make Coverage suspendable Add `Coverage.suspend`, `Coverage.resume` and some methods. [Feature #18176] [ruby-core:105321]
* Update to ruby/spec@254c380Benoit Daloze2021-10-202-13/+30
|
* Update to ruby/spec@d6921efBenoit Daloze2021-10-2013-336/+133
|