summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-06-22[rubygems/rubygems] Fix argument order of `assert_equal`Nobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/a7c015f82b
2023-06-21[ruby/yarp] Set default external encoding for parse testsKevin Newton
https://github.com/ruby/yarp/commit/e757fde3ed
2023-06-21[ruby/yarp] Truly fix snapshot testing on Ruby CIKevin Newton
https://github.com/ruby/yarp/commit/c4e835711e
2023-06-21[ruby/yarp] Actually fix snapshot testsKevin Newton
https://github.com/ruby/yarp/commit/ba9e5b447e
2023-06-21[ruby/yarp] Fix snapshot checkingKevin Newton
https://github.com/ruby/yarp/commit/05a60a0774
2023-06-21[ruby/yarp] Use binary for normalizing printed ASTsKevin Newton
https://github.com/ruby/yarp/commit/814326de34
2023-06-21[ruby/yarp] Fix invalid unescape sequence error for lower wJemma Issroff
https://github.com/ruby/yarp/commit/5a2c78367a
2023-06-21[Feature #19741] Sync all files in yarpJemma Issroff
This commit is the initial sync of all files from ruby/yarp into ruby/ruby. Notably, it does the following: * Sync all ruby/yarp/lib/ files to ruby/ruby/lib/yarp * Sync all ruby/yarp/src/ files to ruby/ruby/yarp/ * Sync all ruby/yarp/test/ files to ruby/ruby/test/yarp Notes: Merged: https://github.com/ruby/ruby/pull/7964
2023-06-20[ruby/irb] Improve indentation: bugfix, heredoc, embdoc, stringstomoya ishida
(https://github.com/ruby/irb/pull/515) * Implement heredoc embdoc and string indentation with bugfix * Fix test_ruby_lex's indentation value * Add embdoc indent test * Add workaround for lines==[nil] passed to auto_indent when exit IRB with CTRL+d
2023-06-20[Bug #19736] Recover after unterminated interpolationNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7963
2023-06-20Adjust indent [ci skip]Nobuyoshi Nakada
2023-06-19[rubygems/rubygems] Bump rb-sysdependabot[bot]
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.78 to 0.9.79. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.78...v0.9.79) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19[rubygems/rubygems] Suppress Content-Type warningsNobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/97dbe4cabd
2023-06-19[ruby/irb] Add missing token that ignored by rippertomoya ishida
(https://github.com/ruby/irb/pull/608) https://github.com/ruby/irb/commit/1cd3b45402
2023-06-19[ruby/openssl] add OpenSSL Provider supportqwyng
https://github.com/ruby/openssl/commit/189c167e40 [rhe: tool/update-deps --fix to update ext/openssl/depend]
2023-06-19[rubygems/rubygems] RemoteFetcher tests don't work with path including `+`Nobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/657d57621e
2023-06-19[rubygems/rubygems] Escape regexp metachacters or use `assert_include`Nobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/6d445a85d7
2023-06-19[ruby/openssl] Fix modular square root test with LibreSSL >= 3.8Theo Buehler
If x is a modular square root of a (mod p) then so is (p - x). Both answers are valid. In particular, both 2 and 3 are valid square roots of 4 (mod 5). Do not assume that a particular square root is chosen by the algorithm. Indeed, the algorithm in OpenSSL and LibreSSL <= 3.7 returns a non-deterministic answer in many cases. LibreSSL 3.8 and later will always return the smaller of the two possible answers. This breaks the current test case. Instead of checking for a particular square root, check that the square of the claimed square root is the given value. This is always true. Add the simplest test case where the answer is indeed non-deterministic. https://github.com/ruby/openssl/commit/93548ae959
2023-06-19[ruby/openssl] CI: Add the test/openssl/test_pkey.rb on the FIPS mode case.Jun Aruga
It's to test the `OpenSSL::PKey.read` in the `test/openssl/test_pkey.rb`. I added the pending status to the following tests failing on the FIPS mode case in the `test/openssl/test_pkey.rb`. * `test_ed25519` * `test_x25519` * `test_compare?` https://github.com/ruby/openssl/commit/8149cdf6e8
2023-06-19[ruby/openssl] Drop a common logic disabling the FIPS mode in the tests.Jun Aruga
We want to run the unit tests in the FIPS mode too. https://github.com/ruby/openssl/commit/ab92baff34
2023-06-17Remove no longer used variableNobuyoshi Nakada
2023-06-17Split the bmethod proc test to avoid redefinitionNobuyoshi Nakada
2023-06-15[ruby/irb] Rewrite RubyLex to fix some bugs and make it possible totomoya ishida
add new features easily (https://github.com/ruby/irb/pull/500) * Add nesting level parser for multiple use (indent, prompt, termination check) * Rewrite RubyLex using NestingParser * Add nesting parser tests, fix some existing tests * Add description comment, rename method to NestingParser * Add comments and tweak code to RubyLex * Update NestingParser test * Extract list of ltype tokens to constants
2023-06-14[ruby/rdoc] Use flat_map for better performancePetrik
https://github.com/ruby/rdoc/commit/76192a280d
2023-06-15[rubygems/rubygems] Removed unnecessary disabling of Lint/DuplicateMethodsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/225fdf0b2e
2023-06-13Add tests to `String#byteslice` memory allocation behaviour. (#1909)Samuel Williams
Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2023-06-13[ruby/irb] Stanardise test class names with `Test` postfix insteadStan Lo
of prefix (https://github.com/ruby/irb/pull/603) https://github.com/ruby/irb/commit/359cb28def
2023-06-13[ruby/irb] Use symbol.inspect instead of ":"+symbol.id2name to avoidtomoya ishida
completion candidates including newline characters (https://github.com/ruby/irb/pull/539) https://github.com/ruby/irb/commit/aaf0c46645
2023-06-13[ruby/uri] Fix RFC3986 regexpsNobuyoshi Nakada
https://github.com/ruby/uri/commit/8e38592241
2023-06-12When alloc size is too large, only allocate structMatt Valentine-House
Notes: Merged: https://github.com/ruby/ruby/pull/7933
2023-06-12[ruby/psych] Prefer `assert_include` for simple stringsNobuyoshi Nakada
https://github.com/ruby/psych/commit/33024ce2b0
2023-06-08Removed racc/cparse checkingHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7877
2023-06-08Try to promote racc as bundled gemsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7877
2023-06-08Sample files of racc is not available in ruby/rubyHiroshi SHIBATA
2023-06-08Manually merge https://github.com/ruby/racc/pull/217Hiroshi SHIBATA
2023-06-08Fix wrong directory layout for racc testHiroshi SHIBATA
2023-06-08[ruby/racc] Embed racc/info.rb tooNobuyoshi Nakada
https://github.com/ruby/racc/commit/b5e121f304
2023-06-06YJIT: Avoid identity-based known-class guards for IO objects (#7911)Alan Wu
`IO#reopen` is very special in that it is able to change the class and singleton class of IO instances. In its presence, it is not correct to assume that IO instances has a stable class/singleton class and guard by comparing identity. Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
2023-06-06Unify length field for embedded and heap strings (#7908)Peter Zhu
* Unify length field for embedded and heap strings The length field is of the same type and position in RString for both embedded and heap allocated strings, so we can unify it. * Remove RSTRING_EMBED_LEN Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
2023-06-06Revert debugging code in test_gc_compact.rbPeter Zhu
2023-06-05[ruby/irb] Fixed string escaping omissionsima1zumi
(https://github.com/ruby/irb/pull/599) I received a `RegexpError` when I typed `::Array[`. ::Array[/Users/mi/ghq/github.com/ruby/irb/lib/irb/completion.rb:236:in `retrieve_completion_data': premature end of char-class: /^Array[/ (RegexpError)
2023-06-05Revert "Revert "Fix cvar caching when class is cloned""eileencodes
This reverts commit 10621f7cb9a0c70e568f89cce47a02e878af6778. This was reverted because the gc integrity build started failing. We have figured out a fix so I'm reopening the PR. Original commit message: Fix cvar caching when class is cloned The class variable cache that was added in ruby#4544 changed the behavior of class variables on cloned classes. As reported when a class is cloned AND a class variable was set, and the class variable was read from the original class, reading a class variable from the cloned class would return the value from the original class. This was happening because the IC (inline cache) is stored on the ISEQ which is shared between the original and cloned class, therefore they share the cache too. To fix this we are now storing the `cref` in the cache so that we can check if it's equal to the current `cref`. If it's different we don't want to read from the cache. If it's the same we do. Cloned classes don't share the same cref with their original class. This will need to be backported to 3.1 in addition to 3.2 since the bug exists in both versions. We also added a marking function which was missing. Fixes [Bug #19379] Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org> Notes: Merged: https://github.com/ruby/ruby/pull/7900
2023-06-05[rubygems/rubygems] Try again with ↵Hiroshi SHIBATA
https://github.com/rubygems/rubygems/pull/6693 https://github.com/rubygems/rubygems/commit/73c0d5f059
2023-06-05[ruby/singleton] Simplify implementation of `Singleton#instance`.Daniel Pepper
(https://github.com/ruby/singleton/pull/9) - Add more tests to cover rails' usage.
2023-06-05[ruby/singleton] Revert "Simplify the implementationHiroshi SHIBATA
(https://github.com/ruby/singleton/pull/7)" This reverts commit https://github.com/ruby/singleton/commit/545b6b61a40d. This change break Rails CI: https://bugs.ruby-lang.org/issues/19711 https://github.com/ruby/singleton/commit/911531d508
2023-06-03Attrset name is not allowed as an attributeNobuyoshi Nakada
2023-06-03Fix `Thread#join(timeout)` when running inside the fiber scheduler. (#7903)Samuel Williams
Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2023-06-03[ruby/rdoc] Auto-correct trailing new linesVinicius Stock
https://github.com/ruby/rdoc/commit/4b68c0728a
2023-06-03[ruby/singleton] Simplify the implementationDaniel Pepper
(https://github.com/ruby/singleton/pull/7) Remove `__init__` and move logic to `included`.
2023-06-02Stabilize test_latest_gc_info_need_major_byJean Boussier
Fix: ``` 1) Failure: TestGc#test_latest_gc_info_need_major_by [/home/runner/work/ruby/ruby/src/test/ruby/test_gc.rb:266]: <nil> expected to not be nil. ``` `GC.stat(:major_gc_count)` can be bumped while `GC.latest_gc_info(:need_major_by)` is still nil. Notes: Merged: https://github.com/ruby/ruby/pull/7895