summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-10-16[PRISM] Fix more bugs in the compiler (#8658)Jemma Issroff
* Fixed ConstantPathWriteNode * FIxed FlipFlopNode
2023-10-16[PRISM] prevent underflow on popped splatarray (#8657)Adam Hess
prevent underflow on popped splatarray This only emits the splat array node when not popped
2023-10-16[ruby/irb] Suppress "Switch to inspect mode" messagesNobuyoshi Nakada
This message is displayed if STDIN is not a tty. The parallel test is the case. https://github.com/ruby/irb/commit/e26e90e3fb
2023-10-16[rubygems/rubygems] Remove kludge that should be unnecessary.Ellen Marie Dash
https://github.com/rubygems/rubygems/commit/f1d44ecb62
2023-10-16Fix method coverage comparisonsNobuyoshi Nakada
Although Ruby's hashes preserve the insertion order, the ordering of method coverage results is inherently nondeterministic, because they are collected using `ObjectSpace`.
2023-10-14[ruby/irb] Restore encoding in InputCompletor testtomoya ishida
(https://github.com/ruby/irb/pull/732) https://github.com/ruby/irb/commit/ef77c232cf
2023-10-14[ruby/prism] Put names on back reference read nodesKevin Newton
https://github.com/ruby/prism/commit/10a6403293
2023-10-14[ruby/irb] Restore IRB::InputCompletor for compatibilitytomoya ishida
(https://github.com/ruby/irb/pull/730) https://github.com/ruby/irb/commit/77265efc5f
2023-10-14[Bug #19926] Fix Range#size for ranges with a Rational endpointKouhei Yanagita
2023-10-13[ruby/prism] Fix up PR failingsKevin Newton
https://github.com/ruby/prism/commit/11255f636e
2023-10-13[ruby/prism] Remove now-defunct semantic_field from nodesKevin Newton
https://github.com/ruby/prism/commit/c82a9dad64
2023-10-13[ruby/prism] Refactor unescape test to simplifyKevin Newton
https://github.com/ruby/prism/commit/4392775898
2023-10-13Remove old unescaping codeKevin Newton
2023-10-13[ruby/prism] Properly handle unescaping in regexpKevin Newton
https://github.com/ruby/prism/commit/abf9fd6863
2023-10-13[ruby/prism] Use current_string to handle :" symbolsKevin Newton
https://github.com/ruby/prism/commit/eedeec8f9a
2023-10-13[ruby/prism] Use current_string for :' symbolsKevin Newton
https://github.com/ruby/prism/commit/fadb5be520
2023-10-13[ruby/prism] Use current_string for %s symbol literalsKevin Newton
https://github.com/ruby/prism/commit/52504f8911
2023-10-13[ruby/prism] Split up lines in tilde heredocsKevin Newton
https://github.com/ruby/prism/commit/21fad0c2ce
2023-10-13[ruby/prism] Enable remaining heredoc unescape testsKevin Newton
https://github.com/ruby/prism/commit/c7ea4941c5
2023-10-13[ruby/prism] Use current_string for escapes in heredocsKevin Newton
https://github.com/ruby/prism/commit/fc49acfc59
2023-10-13[ruby/prism] Use current_string for x string escape sequencesKevin Newton
https://github.com/ruby/prism/commit/66ce9280bb
2023-10-13[ruby/prism] Use current_string to handle escapes in string literalsKevin Newton
https://github.com/ruby/prism/commit/d912d48104
2023-10-13[ruby/prism] Use current_string to handle %IKevin Newton
https://github.com/ruby/prism/commit/831d5f4b45
2023-10-13[ruby/prism] Use current_string for handling %W listsKevin Newton
https://github.com/ruby/prism/commit/edb1674725
2023-10-13[ruby/prism] Use current_string to handle %i escapesKevin Newton
https://github.com/ruby/prism/commit/9c90d0a777
2023-10-13[ruby/prism] Use current_string to handle %w escapesKevin Newton
https://github.com/ruby/prism/commit/b8420ea7ae
2023-10-13[ruby/prism] Strip out old char unescapingKevin Newton
https://github.com/ruby/prism/commit/27ca207ab3
2023-10-13[ruby/prism] Handle remaining escape sequences for character literalsKevin Newton
https://github.com/ruby/prism/commit/ba33607034
2023-10-13[ruby/prism] Skip tests that are currently failingKevin Newton
https://github.com/ruby/prism/commit/23b2336148
2023-10-13[ruby/prism] More thoroughly test unescapesKevin Newton
https://github.com/ruby/prism/commit/e86196dde6
2023-10-13[PRISM] Compile fixes (#8644)Jemma Issroff
* Fix compiling UndefNodes * Fix compiling super on ClassNode * Fix compile popped for ModuleNode * Add checks for NULL nodes * Only add newhash if not popped
2023-10-13YJIT: Fallback opt_getconstant_path for const_missing (#8623)Takashi Kokubun
* YJIT: Fallback opt_getconstant_path for const_missing * Fix a comment [ci skip] * Remove a wrapper function
2023-10-13[Bug #19919] Warn class variable assignment and constant declaration in ↵yui-knk
condition
2023-10-13[Bug #19924] Source code should be unsigned char streamNobuyoshi Nakada
Use `peekc` or `nextc` to fetch the next character, instead of reading from `lex.pcur` directly, for compilers that plain char is signed.
2023-10-12[ruby/irb] Fix require path completion disturbing string methodtomoya ishida
completion (https://github.com/ruby/irb/pull/726) https://github.com/ruby/irb/commit/e42dc74ce0
2023-10-12[ruby/prism] Fix parsing symbols in strings after labelsHaldun Bayhantopcu
https://github.com/ruby/prism/commit/e16531650d
2023-10-12[ruby/prism] Increase the depth for the For node index variableMatt Valentine-House
In CRuby's parser locals in for nodes appear deeper in the ast than they do in Prism, but we can fix that with a transparent scope https://github.com/ruby/prism/commit/460187f41e
2023-10-12[ruby/irb] Fix test runner exit bugtomoya ishida
(https://github.com/ruby/irb/pull/728) * Remove useless test setup and teardown that sets MAIN_CONTEXT to nil * Avoid adding command methods to main object in test https://github.com/ruby/irb/commit/f204829a08
2023-10-12[ruby/irb] Decouple RubyLex from prompt and line_notomoya ishida
(https://github.com/ruby/irb/pull/701) * Remove instance variable prompt and line_no from RubyLex * Fix prompt test * Rename prompt generating method and make it private https://github.com/ruby/irb/commit/1ceb97fe2e
2023-10-12Add Range#reverse_each implementation for performanceKouhei Yanagita
2023-10-12Fix ObjectSpace.dump with super() callinfoJohn Hawthorn
super() uses 0 as mid for its callinfo, so we need to check for that to avoid a segfault when using dump_all.
2023-10-12[ruby/securerandom] Extract `assert_uuid_v7`Nobuyoshi Nakada
https://github.com/ruby/securerandom/commit/029677584d
2023-10-12M:N thread scheduler for RactorsKoichi Sasada
This patch introduce M:N thread scheduler for Ractor system. In general, M:N thread scheduler employs N native threads (OS threads) to manage M user-level threads (Ruby threads in this case). On the Ruby interpreter, 1 native thread is provided for 1 Ractor and all Ruby threads are managed by the native thread. From Ruby 1.9, the interpreter uses 1:1 thread scheduler which means 1 Ruby thread has 1 native thread. M:N scheduler change this strategy. Because of compatibility issue (and stableness issue of the implementation) main Ractor doesn't use M:N scheduler on default. On the other words, threads on the main Ractor will be managed with 1:1 thread scheduler. There are additional settings by environment variables: `RUBY_MN_THREADS=1` enables M:N thread scheduler on the main ractor. Note that non-main ractors use the M:N scheduler without this configuration. With this configuration, single ractor applications run threads on M:1 thread scheduler (green threads, user-level threads). `RUBY_MAX_CPU=n` specifies maximum number of native threads for M:N scheduler (default: 8). This patch will be reverted soon if non-easy issues are found. [Bug #19842]
2023-10-11[rubygems/rubygems] Simplify logic for Gem::PathSupport#home, and make ↵Ellen Marie Dash
GEM_HOME always overide it. https://github.com/rubygems/rubygems/commit/64273fd7e3
2023-10-11[rubygems/rubygems] Allow test_gem_install_update_options to raise ↵Ellen Marie Dash
Errno::ACCES, in addition to Gem::FilePermissionError. https://github.com/rubygems/rubygems/commit/784fe2a814
2023-10-11[rubygems/rubygems] Update tests to match new implementation of falling back ↵Ellen Marie Dash
to user-writable directories. https://github.com/rubygems/rubygems/commit/a06e657ac6
2023-10-11[rubygems/rubygems] [test_gem_install_update_options.rb] Fix linter warnings.Ellen Marie Dash
https://github.com/rubygems/rubygems/commit/cdcb8394f6
2023-10-11[rubygems/rubygems] If GEM_HOME exists + isn't writable, use --user-install.Ellen Marie Dash
https://github.com/rubygems/rubygems/commit/6d20585645
2023-10-11[ruby/irb] Rename current completor to RegexpCompletor andtomoya ishida
refactored for future extension (https://github.com/ruby/irb/pull/707) * Move completion implementation to completion/regexp_completor for future extension * Remove constant CompletionProc and PerfectMatchedProc and add a class method * Move document display logic to InputCompletor. Each completor only need to implement `completion_caididates` and `doc_namespace` * Move display_document logic to RelineInputMethod * Use RegexpCompletor directly. Not through class method of InputCompletor. * RegexpCompletor extends BaseCompletor, move back definition to completion.rb * Move display_document test to input_method test * Stop re-initialize completor on each completion phase * Store completor to ReadlineInputMethod's iver https://github.com/ruby/irb/commit/1e98521483
2023-10-11[flori/json] skip TruffleRubyHiroshi SHIBATA
https://github.com/flori/json/commit/bab704eb49