path: root/test/irb
AgeCommit message (Collapse)Author
6 days[ruby/irb] Suppress verbose messages in the parallel testNobuyoshi Nakada
`:VERBOSE` flag needs to be set prior to ``.
8 days[ruby/irb] Evaluate each toplevel statementaycabta
8 days[ruby/irb] Add test for multiline pasteaycabta
8 days[ruby/irb] Add yamatanooroti test exampleaycabta
9 days[ruby/irb] Add show_source commandTakashi Kokubun
9 days[ruby/irb] Colorize `__END__` as keywordNobuyoshi Nakada
9 days[ruby/irb] SIGINT should raise Interrupt after IRB sessionKoichi Sasada
9 days[ruby/irb] Suppress verbose messages in the parallel testNobuyoshi Nakada
`:VERBOSE` flag needs to be set prior to ``.
13 days[ruby/irb] Always add input method when calling in testsaycabta
When passes input method as nil to through, is executed and the global internal state of Reline is rewritten, therefore other tests are failed in the Ruby repository. This commit changes to use TestInputMethod.
2021-03-25[ruby/irb] Cache completion files to requireaycabta
2021-03-24[ruby/irb] fix completion test when out-of-place buildNobuyoshi Nakada
2021-03-24[ruby/irb] Complete require and require_relativeaycabta
2021-03-24[ruby/irb] Change ripper_lex_without_warning to a class methodaycabta
2021-03-23Suppress verbose messagesNobuyoshi Nakada
Get rid of warnings in the parallel test. ``` unknown command: "Switch to inspect mode." ```
2021-03-21[ruby/irb] Deal with different screen sizesTakashi Kokubun
2021-03-21[ruby/irb] Add whereami commandTakashi Kokubun
2021-03-21[ruby/irb] Implement ls commandTakashi Kokubun
2021-03-20[ruby/irb] Don't call Ruby 2.4+'s String#pretty_printTakashi Kokubun
2021-03-18Try to fix errors in TestIRB::TestHistory tooKazuhiro NISHIYAMA ``` 1) Error: TestIRB::TestHistory#test_history_concurrent_use: Errno::EACCES: Permission denied @ dir_s_mkdir - /home/runner/.config/irb /home/runner/work/actions/actions/ruby/lib/fileutils.rb:253:in `mkdir' /home/runner/work/actions/actions/ruby/lib/fileutils.rb:253:in `fu_mkdir' /home/runner/work/actions/actions/ruby/lib/fileutils.rb:231:in `block (2 levels) in mkdir_p' /home/runner/work/actions/actions/ruby/lib/fileutils.rb:229:in `reverse_each' /home/runner/work/actions/actions/ruby/lib/fileutils.rb:229:in `block in mkdir_p' /home/runner/work/actions/actions/ruby/lib/fileutils.rb:211:in `each' /home/runner/work/actions/actions/ruby/lib/fileutils.rb:211:in `mkdir_p' /home/runner/work/actions/actions/ruby/lib/irb/init.rb:355:in `rc_file_generators' /home/runner/work/actions/actions/ruby/lib/irb/init.rb:330:in `rc_file' /home/runner/work/actions/actions/ruby/test/irb/test_history.rb:170:in `block in assert_history' /home/runner/work/actions/actions/ruby/lib/tmpdir.rb:96:in `mktmpdir' /home/runner/work/actions/actions/ruby/test/irb/test_history.rb:168:in `assert_history' /home/runner/work/actions/actions/ruby/test/irb/test_history.rb:133:in `test_history_concurrent_use' ```
2021-03-18Fix errors when XDG_CONFIG_HOME points to non-writable directoryKazuhiro NISHIYAMA
`$HOME/.config` is not writable on CI because I think tests should not corrupt user's data. And GitHub Actions CI sets `XDG_CONFIG_HOME` since `Version: 20210309.1`. ``` Errno::EACCES: Permission denied @ dir_s_mkdir - /home/runner/.config/irb ```
2021-03-06[ruby/irb] Make save-history extension safe for concurrent useJeremy Evans
This makes the save-history extension check for modifications to the history file before saving it. If the history file was modified after the history was loaded and before it was saved, append only the new history lines to the history file. This can result in more lines in the history file than SAVE_HISTORY allows. However, that will be fixed the next time irb is run and the history is saved. Fixes [Bug #13654]
2021-03-05[ruby/irb] Add a test for not continuing when endless range at eolaycabta
2021-02-11[ruby/irb] The command "irb_info" should show RUBY_PLATFORMaycabta
2021-02-11[ruby/irb] Suppress colorize on Windows testsaycabta
2021-02-06[ruby/irb] Enable to reassign a new block with "measure" commandaycabta
2021-02-06[ruby/irb] Allow "measure" command to take blockaycabta
2021-02-03[ruby/irb] follow up the actual line numberNobuhiro IMAI
2021-01-27In test, need to pass a context to explicitlyaycabta
2021-01-27[ruby/irb] specify the `VERBOSE` to `false` and fix tests to fitNobuhiro IMAI
2021-01-27[ruby/irb] use `RubyLex::TerminateLineInput` appropriately [Bug #17564]Nobuhiro IMAI
* using the appropriciate exception instead of `break` so that the session can be continue after the `irb_source` and `irb_load` commands * suppress extra new line due to one more `#prompt` call
2021-01-24[ruby/irb] Indent correctly with method calling with receiveraycabta
2021-01-24[ruby/irb] Indent correctly with keyword "for" and "in"aycabta
2021-01-20[ruby/irb] Remove pp-specific stub from TestColorTakashi Kokubun
because it was for TestColorPrinter
2021-01-20[ruby/irb] Undefine unused constantsTakashi Kokubun
2021-01-20[ruby/irb] Split test files for IRB::Color and IRB::ColorPrinterTakashi Kokubun
2021-01-19[ruby/irb] Stub a screen size for test_contextTakashi Kokubun
2021-01-18[ruby/irb] Support GitHub ActionsTakashi Kokubun
2021-01-18[ruby/irb] Stub a screen size for testsTakashi Kokubun
2021-01-18[ruby/irb] skip a failling test on TruffleRubyNobuhiro IMAI
* due to the difference of backtrace pointed out by @aycabta
2021-01-18[ruby/irb] handle repeated exception separatelyNobuhiro IMAI
2021-01-18[ruby/irb] handle `__ENCODING__` as a keyword as wellNobuhiro IMAI
2021-01-12Fix the failing test with XDG_CONFIG_HOMEHiroshi SHIBATA
2021-01-11Suppress constant redefinition warningsNobuyoshi Nakada
2021-01-07[ruby/irb] Make IRB::ColorPrinter.pp compatible with PP.ppTakashi Kokubun
The incompatible interface is not helpful, again if you want to use it as a standalone library, falling it back to PP. Original PP.pp also ends with `out << "\n"`.
2021-01-08should use `assert_include` here.Koichi Sasada
Random ordering test can introduce antoher candidate so it should be `assert_include`.
2021-01-08[ruby/irb] Fix BACK_TRACE_LIMIT logicaycabta
2021-01-08[ruby/irb] Use Exception#full_message to show backtrace in the correct orderaycabta
[Bug #17466]
2021-01-08[ruby/irb] refactoring an error handling in `IRB::Inspector`Nobuhiro IMAI
* moved rescue clause to `#inspect_value` to catch all failures in inspectors * test with all (currently five kind of) inspect modes - tweaked the input due to only `Marshal` can inspect(dump) a `BasicObject`
2021-01-08[ruby/irb] do not escape a predicate method for doc namespaceNobuhiro IMAI
* Fixes #88
2021-01-05[ruby/irb] Use error tokens if there are no correct tokens in the same placeaycabta
For example, the broken code "%www" will result in only one error token.