summaryrefslogtreecommitdiff
path: root/test/irb
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/irb] support more body argument for oneliner method definitionNobuhiro IMAI2020-11-221-0/+2
| | | | https://github.com/ruby/irb/commit/2ff1295533
* Update expected IRB resultNobuyoshi Nakada2020-11-201-1/+11
|
* Remove system method for E2E testing because depends on ruby commandaycabta2020-10-051-54/+75
|
* Show stdout and stderr when history tests failaycabta2020-10-051-32/+31
|
* [ruby/irb] Drop OMIT_ON_ASSIGNMENT and add :truncate option for ↵aycabta2020-09-191-22/+6
| | | | | | ECHO_ON_ASSIGNMENT https://github.com/ruby/irb/commit/4c89b0775b
* [ruby/irb] Omit output if first line of multiline is too longaycabta2020-09-141-0/+76
| | | | https://github.com/ruby/irb/commit/0feeae38c5
* [ruby/irb] Add OMIT_ON_ASSIGNMENTaycabta2020-09-141-4/+81
| | | | | | | | | | | Omit the results evaluated at assignment if they are too long. The behavior of ECHO_ON_ASSIGNMENT being on by default is hard to understand, so I change it to off by default. Instead, we turn OMIT_ON_ASSIGNMENT on by default. The result is displayed on assignment, but it will always be short and within one line of the screen. https://github.com/ruby/irb/commit/c5ea79d5ce
* Skip irb/test_history on Windows tooaycabta2020-08-201-6/+1
|
* Skip Editline for history tests of IRBaycabta2020-08-191-0/+9
| | | | | Because Editline erases all histories in Readline::HISTORY when Readline.readline is called.
* Skip irb/test_history on Solarisaycabta2020-08-191-1/+1
|
* Use "in" and "out" options of "system" instead of "replace_stdio"aycabta2020-08-191-28/+1
|
* Do "write" to temp stdin before "reopen"aycabta2020-08-191-5/+5
|
* test/irb/test_history.rb: prevent warningsYusuke Endoh2020-08-181-4/+4
| | | | | | | | | | | | | ``` /home/chkbuild/chkbuild/tmp/build/20200818T123003Z/ruby/test/irb/test_history.rb:16: warning: assigned but unused variable - result_output /home/chkbuild/chkbuild/tmp/build/20200818T123003Z/ruby/test/irb/test_history.rb:34: warning: assigned but unused variable - result_output /home/chkbuild/chkbuild/tmp/build/20200818T123003Z/ruby/test/irb/test_history.rb:57: warning: assigned but unused variable - result_output /home/chkbuild/chkbuild/tmp/build/20200818T123003Z/ruby/test/irb/test_history.rb:80: warning: assigned but unused variable - result_output ```
* Lounch external process on Windows correctlyaycabta2020-08-181-2/+1
|
* [ruby/irb] Change the way the IRB is invoked as an external processaycabta2020-08-181-2/+1
| | | | https://github.com/ruby/irb/commit/f4bcdf4375
* [ruby/irb] Support shortening lambda notetion for nesting level of promptaycabta2020-08-181-5/+15
| | | | https://github.com/ruby/irb/commit/f1a775af47
* [ruby/irb] Support shortening lambda notationaycabta2020-08-181-0/+16
| | | | https://github.com/ruby/irb/commit/8e3f81d428
* [ruby/irb] Add require 'irb' to test separatelyaycabta2020-08-181-0/+1
| | | | https://github.com/ruby/irb/commit/9e4423b6e1
* [ruby/irb] Make history infinite if set SAVE_HISTORY to negativeaycabta2020-08-181-0/+23
| | | | https://github.com/ruby/irb/commit/824473e880
* [ruby/irb] Suppress crash when bignum is set to SAVE_HISTORYaycabta2020-08-181-0/+23
| | | | https://github.com/ruby/irb/commit/5044eb2730
* [ruby/irb] Add tests about IRB historyaycabta2020-08-181-0/+131
| | | | https://github.com/ruby/irb/commit/82efd370eb
* [ruby/irb] Support oneline method definitionaycabta2020-08-181-0/+29
| | | | https://github.com/ruby/irb/commit/826ae909c9
* Sometimes result indicator (=>) isn't shownaycabta2020-07-221-1/+1
|
* Use simple assersionaycabta2020-07-221-3/+1
|
* [ruby/irb] handle rescue modifier properlyNobuhiro IMAI2020-07-221-0/+27
| | | | https://github.com/ruby/irb/commit/6de1341f5e
* [ruby/irb] Add test_eval_object_without_inspect_methodaycabta2020-07-221-0/+17
| | | | https://github.com/ruby/irb/commit/c0d9a26bce
* [ruby/irb] Add encoding magic comments of editorsaycabta2020-07-221-0/+26
| | | | https://github.com/ruby/irb/commit/f8c10ea24b
* [ruby/irb] Suppress incomplete encoding magic comment erroraycabta2020-07-221-0/+13
| | | | https://github.com/ruby/irb/commit/443e90af80
* [ruby/irb] Suppress incomplete coding magic comment erroraycabta2020-07-221-0/+13
| | | | https://github.com/ruby/irb/commit/6a457edbd1
* rubygems is needed to run solo-file testKoichi Sasada2020-07-151-0/+1
|
* Fix typosKazuhiro NISHIYAMA2020-05-091-4/+4
|
* Restore the external and internal encodings of STDIN, STDOUT, and STDERRYusuke Endoh2020-05-081-0/+4
| | | | IRB::ReadlineInputMethod#initialize changes them via IRB.set_encoding.
* test/irb/test_cmd.rb: clear IRB.@CONF on setupYusuke Endoh2020-05-081-0/+1
| | | | | | | | | | | | | | | | | It caches a path to .irbrc file, which has caused random failure: ``` 1) Failure: TestIRB::ExtendCommand#test_irb_info_multiline [/home/mame/work/ruby/test/irb/test_cmd.rb:49]: Expected / Ruby\sversion: .+\n IRB\sversion:\sirb .+\n InputMethod:\sReidlineInputMethod\swith\sReline .+ and .+\n \.irbrc\spath: .+ /x to match "Ruby version: 2.8.0\n" + "IRB version: irb 1.2.3 (2020-02-15)\n" + "InputMethod: ReidlineInputMethod with Reline 0.1.4 and /tmp/test_reline_config_155659/.inputrc\n". ```
* [ruby/irb] Restore the default encodingsNobuyoshi Nakada2020-04-301-0/+4
| | | | IRB::ReadlineInputMethod#initialize sets via IRB.set_encoding.
* [ruby/irb] Suppress messages switching inspect modeNobuyoshi Nakada2020-04-301-0/+4
|
* [ruby/irb] Relaxed regexp for readlineNobuyoshi Nakada2020-04-301-1/+1
| | | | | Readline::VERSION may not be a single word, e.g EditLine wrapper when linked with editline.
* [ruby/irb] Check existence of rc files in irb_info commandaycabta2020-04-291-0/+50
| | | | https://github.com/ruby/irb/commit/cdbb9dfc9f
* [ruby/irb] Add irb_info commandaycabta2020-04-291-0/+64
| | | | https://github.com/ruby/irb/commit/a6fe58e916
* [ruby/irb] Suppress crashing when EncodingError has occurred without linenoaycabta2020-03-261-0/+7
| | | | https://github.com/ruby/irb/commit/13572d8cdc
* Fix a typo [ci skip]Kazuhiro NISHIYAMA2020-02-291-1/+1
|
* [ruby/irb] `yield` outside method definition is a syntax errorNobuyoshi Nakada2020-02-211-1/+1
| | | | https://github.com/ruby/irb/commit/dbc7b059c7
* [ruby/irb] fix reserved words and completion for themNobuhiro IMAI2020-02-151-0/+12
| | | | https://github.com/ruby/irb/commit/6184b227ad
* test/irb/test_completion.rb: suppress a warning: unused literal ignoredYusuke Endoh2020-02-141-1/+1
|
* Add test_complete_symbolaycabta2020-02-121-0/+6
| | | | | | The previous version of the test method used a symbol, ":abcdefg" to complete but longer symbols that can be completed are defined by other test methods of other libs.
* Revert "[ruby/irb] Add test_complete_symbol"Hiroshi SHIBATA2020-02-121-6/+0
| | | | This reverts commit 3af3431c2c145134996e66f3d8d9ade8ad81bde0.
* [ruby/irb] Fix auto indent with closed braceaycabta2020-02-121-0/+14
| | | | | | | | | | | | A closed brace in auto-indent shouldn't affect the next brace in the same line, but it behaves like below: p() { } It's a bug. https://github.com/ruby/irb/commit/fbe59e344f
* [ruby/irb] Check doc namespace correctlyaycabta2020-02-121-0/+4
| | | | | | | IRB::InputCompletor::PerfectMatchedProc crashes when doc not found because a variable name was incorrect. https://github.com/ruby/irb/commit/889fd4928f
* [ruby/irb] Add test_complete_symbolaycabta2020-02-121-0/+6
| | | | https://github.com/ruby/irb/commit/dbbf086c1f
* [ruby/irb] Add newline_before_multiline_outputKenta Murata2020-01-211-0/+31
| | | | https://github.com/ruby/irb/commit/9eb1801a66
* [ruby/irb] Fix crashing when multiple open braces per lineBen2020-01-141-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/ruby/irb/issues/55 If we had put multiple open braces on a line the with no closing brace spaces_of_nest array keeps getting '0' added to it. This means that when we pop off of this array we are saying that we should be in position zero for the next line. This is an issue because we don't always want to be in position 0 after a closing brace. Example: ``` [[[ ] ] ] ``` In the above example the 'spaces_of_nest' array looks like this after the first line is entered: [0,0,0]. We really want to be indented 4 spaces for the 1st closing brace 2 for the 2nd and 0 for the 3rd. i.e. we want it to be: [0,2,4]. We also saw this issue with a heredoc inside of an array. ``` [<<FOO] hello FOO ``` https://github.com/ruby/irb/commit/80c69c8272