summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2024-05-16[PRISM] Enable TestParse#test_stringKevin Newton
2024-05-16[ruby/prism] Truncate source lines in errors messages when too longKevin Newton
https://github.com/ruby/prism/commit/72518f5716
2024-05-16[ruby/prism] Update more escape error messages to match CRubyKevin Newton
https://github.com/ruby/prism/commit/ab43b3ab66
2024-05-16[PRISM] Enable TestISeq#test_syntax_error_messageKevin Newton
2024-05-16[PRISM] Enable TestM17N#test_string_mixed_unicodeKevin Newton
2024-05-16[PRISM] Enable TestParse#test_questionKevin Newton
2024-05-16[PRISM] Enable TestParse#test_invalid_charKevin Newton
2024-05-16[PRISM] Enable TestParse#test_percentKevin Newton
2024-05-16[PRISM] Enable TestSyntax#test_syntax_error_at_newlineKevin Newton
2024-05-16[PRISM] Enable TestSyntax#test__END___crKevin Newton
2024-05-16[ruby/prism] Update error message for invalid % at EOFKevin Newton
https://github.com/ruby/prism/commit/178d4f66fd
2024-05-16[ruby/prism] Match CRuby error message for unknown % stringKevin Newton
https://github.com/ruby/prism/commit/863197629c
2024-05-16[ruby/prism] Always go to string lex mode even if EOFKevin Newton
https://github.com/ruby/prism/commit/57d5c9be2c
2024-05-16[rubygems/rubygems] Fix binstubs sometimes not getting regenerated when ↵David Rodriguez
`--destdir` is given This was only working for gems also installed in the default gem home. https://github.com/rubygems/rubygems/commit/47df02dbd9
2024-05-16[rubygems/rubygems] Fix `gem uninstall --user-install` for symlinked HOME'sDavid Rodriguez
https://github.com/rubygems/rubygems/commit/7f0706a897
2024-05-16[rubygems/rubygems] Improve uninstaller testsDavid Rodriguez
Tests have two copies of b-2 installed, one in default home and another in user home. But only the one in default home was visible because of not reloading paths. The user install test was working by chance. https://github.com/rubygems/rubygems/commit/667537a08f
2024-05-16[Bug #20468] Fix safe navigation in `for` variableNobuyoshi Nakada
2024-05-16[rubygems/rubygems] Clean up generated and copied filesv3_4_0_preview1Nobuyoshi Nakada
> leaving the files after gem rebuild was intentional, for local > inspection, but the test suite should be made to clean up after > itself independently of that. https://github.com/rubygems/rubygems/pull/4913#issuecomment-2081710691 https://github.com/rubygems/rubygems/commit/185a2091fb
2024-05-15[PRISM] Enable TestParse#test_global_variableKevin Newton
2024-05-15[PRISM] Enable test_location_of_invalid_tokenKevin Newton
2024-05-15[PRISM] Enable TestParse#test_unexpected_eofKevin Newton
2024-05-15[PRISM] Enable TestParse#test_unexpected_token_after_numericKevin Newton
2024-05-15[PRISM] Temporarily exclude IRB testKevin Newton
2024-05-15[ruby/prism] Replace end of file with end-of-inputKevin Newton
https://github.com/ruby/prism/commit/dd532ded95
2024-05-15[rubygems/rubygems] Do not override `@orig_env`Nobuyoshi Nakada
It is saved in `setup` and restored in `teardown`. https://github.com/rubygems/rubygems/commit/880c5de667
2024-05-14[ruby/zlib] Avoid allocating intermediary strings when read/readpartial are ↵Samuel Giddins
passed an outbuf This accounts for a significant number of string allocations when reading rubygems, but we can avoid that in many places by only copying into the outbuf when present https://github.com/ruby/zlib/commit/d25ef406c1
2024-05-14[rubygems/rubygems] Fix issue when cleaning up plugin stubsDavid Rodriguez
When `gem uninstall <gem> --install-dir <dir>` is run, if the version removed had a plugin, and that same version happened to also be installed globally, then the plugin stub would fail to be removed. https://github.com/rubygems/rubygems/commit/4e2fa0be77
2024-05-14[rubygems/rubygems] Extract a `Gem::SpecificationRecord` classDavid Rodriguez
This class handles all logic to handle the list of specifications, given a set of GEM_PATH directories. Makes `Gem::Specification` has less responsibilities and will help with fixing some bugs next. https://github.com/rubygems/rubygems/commit/df280dbbed
2024-05-14[rubygems/rubygems] Make `Gem.clear_paths` test less implementation dependentDavid Rodriguez
https://github.com/rubygems/rubygems/commit/b545daa95d
2024-05-14[rubygems/rubygems] Simplify test teardownDavid Rodriguez
If we move test directory removal to the very end, I think we should not leak anything. https://github.com/rubygems/rubygems/commit/fb3d8944b5
2024-05-14Fix TestPatternMatching#test_deconstruct_keys testAndrew Konchin
Before the change `C.keys` returned keys captured in some previous test case that by chance captured `nil` value what made this test passed successfully. Now it returns keys captured in this test case.
2024-05-14[ruby/reline] Implement the undo commandMari Imaizumi
(https://github.com/ruby/reline/pull/701) * Refactor send * Implement the undo command * Fix @past_lines initialization * Improve assertion * Hide to save buffer in insert_pasted_text * Replace @using_delete_command with @undoing * Refactor `@past_lines` https://github.com/ruby/reline/commit/4ab72f9cbd
2024-05-13[rubygems/rubygems] Use a constant empty tar header to avoid extra allocationsSamuel Giddins
https://github.com/rubygems/rubygems/commit/716666f65f
2024-05-13[rubygems/rubygems] Use spec.base_dir to remove pluginsVít Ondruch
The plugin loader from `@gem_home` was removed during uninstallation. However, this could leave behind the plugins for `--user-install` installed gems. Use `Gem::Specifictaions#base_dir` instead. This ensures that the plugin loader for associated .gemspec is uninstalled. https://github.com/rubygems/rubygems/commit/6047f78210
2024-05-13[rubygems/rubygems] Improve plugin removal testDavid Rodriguez
Instead of unit testing the `remove_plugins` method, test the whole removal process. https://github.com/rubygems/rubygems/commit/bfdc60af98
2024-05-12ripper: Fix opassign when assignment to backref variablesNobuyoshi Nakada
2024-05-12ripper: Use `$&` instead of quoting charaters in testsNobuyoshi Nakada
2024-05-12[Bug #20481] Check for unmarshaling ivarNobuyoshi Nakada
Prohibit setting instance variables of existing classes and modules via link.
2024-05-12[Bug #7759] Fix instance variable names to be checkedNobuyoshi Nakada
2024-05-12[ruby/irb] Clean up tmpdirNobuyoshi Nakada
https://github.com/ruby/irb/commit/7d60349499
2024-05-11Fix SEGV when ripper hits `backref_error` on `command_asgn` or `arg`yui-knk
2024-05-10[ruby/reline] Avoid STDIN.winsize called in `require "reline"`tomoya ishida
(https://github.com/ruby/reline/pull/703) https://github.com/ruby/reline/commit/21891c47c4
2024-05-10[PRISM] Enable passing argument forwarding testsKevin Newton
2024-05-10[ruby/prism] Enhance parameter forwarding error messagesKevin Newton
https://github.com/ruby/prism/commit/826657232e
2024-05-10[PRISM] Enable passing IRB testsKevin Newton
2024-05-10[ruby/prism] operator renameKevin Newton
https://github.com/ruby/prism/commit/b5e47f5c42
2024-05-10[ruby/irb] Add a new initialization step to validate IRB.conf'sStan Lo
values (https://github.com/ruby/irb/pull/953) Currently, users can only find out that they have set a wrong value for IRB configs when the value is used, with opaque error messages like "comparison of Integer with true failed (TypeError)". This commit adds a new initialization step to validate the values of some IRB configs, so that users can find out about the wrong values during the initialization of IRB. https://github.com/ruby/irb/commit/af8ef2948b
2024-05-10[PRISM] Enable passing test_stringKevin Newton
2024-05-09[PRISM] Enable passing testsKevin Newton
2024-05-09Stabilize TestObjSpace#test_dump_special_constsJean Boussier
The test assumes `:foo` is a static symbol, but that is only true if a literal `:foo` was parsed before `"foo".to_sym` was evaled: ```ruby require 'objspace' foo_sym = "foo".to_sym puts ObjectSpace.dump(eval(":foo")) ``` ``` {"address":"0x100fb46d0", "type":"SYMBOL", "shape_id":10, "slot_size":40, "class":"0x100d3e9c8", "frozen":true, "bytesize":3, "value":"foo", "memsize":40, "flags":{"wb_protected":true, "marking":true, "marked":true}} ```