summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-07-26[ruby/irb] Page `ls`'s output (https://github.com/ruby/irb/pull/657)Stan Lo
* Page ls command's output * Use Pager.page_content in show_cmds too https://github.com/ruby/irb/commit/82d1687302
2023-07-25[ruby/irb] Display `show_cmds`'s output in a pager when in TTYStan Lo
environment (https://github.com/ruby/irb/pull/647) This can: - Make it easier to scroll up and down the commands list - Avoid pushing up users' previous output - Allow users to do basic search with `/<word>` https://github.com/ruby/irb/commit/f94e8a66dd
2023-07-25YJIT: Fix cfp inconsistency on tailcall (#8107)Takashi Kokubun
[Bug #19781] Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
2023-07-24YJIT: Fallback send instructions to vm_sendish (#8106)Takashi Kokubun
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2023-07-24Use the caller location as default filename for eval family of methodsJean Boussier
[Feature #19755] Before (in /tmp/test.rb): ```ruby Object.class_eval("p __FILE__") # => "(eval)" ``` After: ```ruby Object.class_eval("p __FILE__") # => "(eval at /tmp/test.rb:1)" ``` This makes it much easier to track down generated code in case the author forgot to provide a filename argument. Notes: Merged: https://github.com/ruby/ruby/pull/8070
2023-07-24[rubygems/rubygems] Avoid unnecessary network requests for local gemDavid Rodríguez
https://github.com/rubygems/rubygems/commit/ec5f04f7b1
2023-07-21[ruby/yarp] Exclude heredoc_nested test for Rubies < 3.3Jemma Issroff
Ripper's lexemes were slightly different in Ruby 3.2 for Heredocs. We ignored this complex heredoc test in this case because Ripper's output has changed https://github.com/ruby/yarp/commit/59d3d4a899
2023-07-21[rubygems/rubygems] Deprecate Gem::Platform.matchHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/e3ba3e2225
2023-07-21[rubygems/rubygems] Boundary check in `Gem::StreamUI#choose_from_list`Nobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/abacb0cb34
2023-07-20Sync YARP gemspec (#8101)Jemma Issroff
* Sync YARP gemspec We were previously not syncing the YARP gemspec over which meant that the Ruby YARP gem was out of sync. * Sync YARP node / lex_compat files Notes: Merged-By: jemmaissroff
2023-07-20[ruby/yarp] Fix heredocs inside %W and %w listsAaron Patterson
The problem was that we were treating heredoc bodies as part of the %W list because we didn't push the scanning cursor past the heredoc after lexing out the here doc. To fix this, we changed the whitespace scanning function to quit scanning when it reaches a newline but only in the case that a heredoc is present. Additionally, we need to prevent double counting newlines in the case of a heredoc. For example: ```ruby %W(<<foo 123) foo ``` The newline after the `)` is counted as part of scanning the heredoc, so we added logic to prevent double counting the newline when scanning the rest of the %W list. https://github.com/ruby/yarp/commit/eb090d8126 Co-authored-by: Jemma Issroff <jemmaissroff@gmail.com>
2023-07-19[rubygems/rubygems] Clear `YAML` constant if it was undefined previouslyNobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/31d0311258
2023-07-19[ruby/reline] Add assertion to auto_indent_proc's parameter, addtomoya ishida
Ctrl-d exit test (https://github.com/ruby/reline/pull/574) * Add auto_indent_proc's parameter assertion in multiline_repl * Add rendering test for Ctrl-d exit https://github.com/ruby/reline/commit/46db71132a
2023-07-19[ruby/reline] Always set ANSI CSI keybindings for Home, End, andtomoya ishida
Arrow. (https://github.com/ruby/reline/pull/569) https://github.com/ruby/reline/commit/f363a43a45
2023-07-19Add a corner case for `return`Nobuyoshi Nakada
2023-07-18[ruby/reline] Add missing `close` to test_rendering.rbtomoya ishida
(https://github.com/ruby/reline/pull/573) https://github.com/ruby/reline/commit/7cd817036e
2023-07-18Remove assumption about object orderPeter Zhu
The address of objects can't be assumed since a later object may be allocate in a swept slot. Notes: Merged: https://github.com/ruby/ruby/pull/8092
2023-07-19[Bug #19774] Fix segfault at `return` in `END`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8093
2023-07-18[rubygems/rubygems] Bump rb-sysdependabot[bot]
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.58 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.58...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> https://github.com/rubygems/rubygems/commit/097ae727b7
2023-07-19Add tests for `return` in `BEGIN` and `END` blocksNobuyoshi Nakada
2023-07-18[ruby/irb] Reduce boilerplate code in RubyLexTestStan Lo
(https://github.com/ruby/irb/pull/644) * Avoid initialising Row at every test input * Extract common assertion patterns into methods * Remove unnecessary PromptRow strcut and boilerplate code https://github.com/ruby/irb/commit/1ba586c0c6
2023-07-18[flori/json] Skip BigDecimal tests when it's missing to loadHiroshi SHIBATA
https://github.com/flori/json/commit/3dd36c6077
2023-07-18[flori/json] Skip unsupported test on JRubyNobuyoshi Nakada
https://github.com/flori/json/commit/7138bf32c7
2023-07-18[ruby/psych] Skip BigDecimal tests when it's missing to loadHiroshi SHIBATA
https://github.com/ruby/psych/commit/e1dbfae7a6
2023-07-17Fix logarithm of 0 with baseNobuyoshi Nakada
2023-07-17objspace is not used in parent process [ci skip]Nobuyoshi Nakada
2023-07-17Fix up to require objspaceNobuyoshi Nakada
2023-07-17Run `Process.warmup` tests in separate processesNobuyoshi Nakada
2023-07-17Implement Process.warmupJean Boussier
[Feature #18885] For now, the optimizations performed are: - Run a major GC - Compact the heap - Promote all surviving objects to oldgen Other optimizations may follow. Notes: Merged: https://github.com/ruby/ruby/pull/7662
2023-07-16Fix null pointer access in Ripper#initializeNobuyoshi Nakada
In `rb_ruby_ripper_parser_allocate`, `r->p` is NULL between creating `self` and `parser_params` assignment. As GC can happen there, the typed-data functions for it need to consider the case. Notes: Merged: https://github.com/ruby/ruby/pull/8085
2023-07-15[ruby/irb] Indent multiline percent literalstomoya ishida
(https://github.com/ruby/irb/pull/643) https://github.com/ruby/irb/commit/18bb4022a9
2023-07-16Allow -1 as the value of `--backtrace-limit` optionTom Stuart
-1 is a legitimate backtrace limit — in fact, it’s the default — so it should be possible to provide it with the `--backtrace-limit` option.
2023-07-16Test that command line `--backtrace-limit` overrides RUBYOPTNobuyoshi Nakada
Co-authored-by: Tom Stuart <hi@tomstu.art>
2023-07-15[Bug #19769] Fix range of size 1 in `String#tr`alexandre184
Notes: Merged: https://github.com/ruby/ruby/pull/8080 Merged-By: nobu <nobu@ruby-lang.org>
2023-07-15Fix stack trace for rescued StopIterationMarcelo Pereira
Notes: Merged: https://github.com/ruby/ruby/pull/6201
2023-07-13Tighten Time.new(string) parsingJeremy Evans
Disallow: * Only year-month * Only year-month-day * Preceding whitespace * Trailing whitespace Fixes [Bug #19293] Notes: Merged: https://github.com/ruby/ruby/pull/7974
2023-07-13[ruby/irb] Unpend RDoc dialog related testsStan Lo
(https://github.com/ruby/irb/pull/640) * Unpend rdoc dialog tests Without these tests, we don't have any coverage on autocompletion's rdoc dialog, which is what caused #638 to happen. * Pull ri doc on CI for the doc dialog test * Assert different screen result on CI and local machine https://github.com/ruby/irb/commit/3ac96be660
2023-07-13[Feature #19757] Add new API `rb_data_define`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8066
2023-07-13Move bsearch test with Bigdecimal under the test_bigdecimal.rbHiroshi SHIBATA
When we extract bigdecimal as bundled gems, this test will be failed with `make test-all`.
2023-07-13Wait for sleepr thread to finish not to leakNobuyoshi Nakada
2023-07-12YARP resync (#8059)Jemma Issroff
Notes: Merged-By: jemmaissroff
2023-07-12[ruby/openssl] Add support for raw private/public keysRyo Kajiwara
(https://github.com/ruby/openssl/pull/646) Add OpenSSL::PKey.new_raw_private_key, #raw_private_key and public equivalents. These methods are useful for importing and exporting keys that support "raw private/public key". Currently, OpenSSL implements X25519/X448 and Ed25519/Ed448 keys. [rhe: rewrote commit message] https://github.com/ruby/openssl/commit/3f29525618 Co-authored-by: Bart de Water <bartdewater@gmail.com>
2023-07-12Add comment to testPeter Zhu
Add comment for 7299c8c0f165247853fac2fe337e7c2678e653c9.
2023-07-12Revert previous commit [ci skip]Nobuyoshi Nakada
This reverts commit 074bf01e13db1ac0407786a3bc1b85c13135fd36, "Test `Comparable#clamp` with inverse arguments as well as a Range". The test is already in another method.
2023-07-12Test `Comparable#clamp` with inverse arguments as well as a RangeNobuyoshi Nakada
2023-07-11Try to fix flaky GC testPeter Zhu
assert_not_nil could allocate objects which may trigger the major GC, so don't run the assertions until the major GC has been ran. Notes: Merged: https://github.com/ruby/ruby/pull/8055
2023-07-10Fix autosplat conditions to handle ruby2_keywords caseJeremy Evans
Autosplat should not occur if there are two arguments but second argument is an array containing a ruby2_keywords splat. Only autosplat if a single argument to be yielded to the block, and there is no splatted flagged keyword hash passed. Fixes [Bug #19759] Notes: Merged: https://github.com/ruby/ruby/pull/8039 Merged-By: jeremyevans <code@jeremyevans.net>
2023-07-10[ruby/yarp] Fix endless method definitions binding power to accept args (#8051)Jemma Issroff
Notes: Merged-By: jemmaissroff
2023-07-10Use `File::NULL` instead of hard coded null device namesNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8050
2023-07-09[Bug #19763] Raise same message exception for regexpNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8045