summaryrefslogtreecommitdiff
path: root/test/reline
AgeCommit message (Collapse)Author
2022-01-11[ruby/reline] Clear dialog when just_move_cursor is called with dialog at ↵aycabta
last line https://github.com/ruby/reline/commit/05024b968e
2022-01-06[ruby/reline] windows: test_yamatanooroti fixYO4
windows can't create too narrow and tall window. https://github.com/ruby/reline/commit/20b5f2f6fc
2022-01-03[ruby/reline] Remove test TODO comments that have been confirmed by E2E testsaycabta
https://github.com/ruby/reline/commit/2ed77b693f
2022-01-02[ruby/reline] Check capname of tigetstr/tigetflag/tigetnumaycabta
Incorrect arguments can cause SEGV. https://github.com/ruby/reline/commit/a58748bcf9
2022-01-02[ruby/reline] Add test_tigetstr_with_erroraycabta
https://github.com/ruby/reline/commit/1ca779740a
2022-01-02[ruby/reline] Implement Reline::Terminfo.tigetnumaycabta
https://github.com/ruby/reline/commit/695212d5d2
2022-01-01[ruby/reline] Consolidate tests that were unnecessarily dividedaycabta
https://github.com/ruby/reline/commit/62eec42e4a
2022-01-01[ruby/reline] Implement Reline::Terminfo.tigetflagaycabta
https://github.com/ruby/reline/commit/0451ed7a28
2021-12-30[ruby/reline] Omit a test on Ruby 2.6aycabta
Some tokens in Ruby 2.6 have difference information than in 2.7 and later, but 2.6 will soon be out of support. https://github.com/ruby/reline/commit/f3bc698385
2021-12-30[ruby/reline] Use ripper_lex_without_warningaycabta
https://github.com/ruby/reline/commit/b7536dc224
2021-12-30[ruby/reline] Use unix_line_discard when Ctrl-u is enteredima1zumi
The kill-line was called when C-u was entered, so it is now called unix-line-discard. In readline(3): > unix-line-discard (C-u) > Kill backward from point to the beginning of the line. > The killed text is saved on the kill-ring. https://github.com/ruby/reline/commit/27570d195e
2021-12-29[ruby/reline] Use omit instead of skipHiroshi SHIBATA
https://github.com/ruby/reline/commit/a538de421f
2021-12-25[ruby/reline] Escape newline(s) in dynamic promptaycabta
https://github.com/ruby/reline/commit/9b209ee1ea
2021-12-25[ruby/reline] Escape newline(s) in promptaycabta
https://github.com/ruby/reline/commit/b545459fca
2021-12-24[ruby/reline] Implement em_kill_lineaycabta
https://github.com/ruby/reline/commit/9fca6ceb45
2021-12-24[ruby/reline] Rename the wrong name "em-kill-line" with the correct name ↵aycabta
"unix-line-discard" https://github.com/ruby/reline/commit/da7af35d1f
2021-12-24[ruby/reline] Bind ed-kill-line to C-u on emacs modeaycabta
https://github.com/ruby/reline/commit/9ab99574f5
2021-12-24[ruby/reline] Fix test input_keys to handle "hankaku" characters correctly ↵Yusuke Endoh
on Windows The method "input_keys" in test/reline/helper.rb handles a single-byte and 8-bit charater as an input with the meta key. However, "test_halfwidth_kana_width_dakuten" in test/reline/test_key_actor_emacs.rb uses a string that contains "hankaku" characters. A "hankaku" character is not with the meta key, but it is a single-byte and 8-bit character on Windows-31J encoding, which confused "input_keys" method. This caused the following error. https://ci.appveyor.com/project/ruby/ruby/builds/41997092/job/ejm77qxgvnlpdwvg ``` 1) Failure: Reline::KeyActor::Emacs::Test#test_halfwidth_kana_width_dakuten [C:/projects/ruby/test/reline/test_key_actor_emacs.rb:2311]: <"\xB6\xDE\xB7\xDE\xB9\xDE\xBA\xDE" (#<Encoding:Windows-31J>)> expected but was <"\e^\e^\e^\e:\e^" (#<Encoding:Windows-31J>)> in <Terminal #<Encoding:Windows-31J>> . <8> expected but was <10>. Finished tests in 1045.472722s, 19.3922 tests/s, 2609.4320 assertions/s. ``` This change introduces "input_raw_keys" that does not convert a single-byte and 8-bit character to "with the meta key", and use it in the test in question. https://github.com/ruby/reline/commit/f6ae0e5d19
2021-12-24[ruby/reline] Add encoding info to an assertion of editing lineaycabta
https://github.com/ruby/reline/commit/22d9262d79
2021-12-24[ruby/reline] Add a test for halfwidth kana width dakutenaycabta
https://github.com/ruby/reline/commit/0895a0d4a1
2021-12-20[ruby/reline] Add a test for dialog proc with contextaycabta
https://github.com/ruby/reline/commit/2ce2696d6e
2021-12-20[ruby/reline] Add an assertion for overwriting dialog proc with the same nameaycabta
https://github.com/ruby/reline/commit/96067bc13c
2021-12-20[ruby/reline] Rename the variable "p" because it overlaps with the "p" methodaycabta
https://github.com/ruby/reline/commit/9bf2ca692e
2021-12-20[ruby/reline] Add support for overwriting dialog proc with the same nameaycabta
https://github.com/ruby/reline/commit/16aa20c380
2021-12-20[ruby/reline] Add Reline.dialog_proc(name_sym)aycabta
https://github.com/ruby/reline/commit/7e5dbe4750
2021-12-20[ruby/reline] Add a test for Reline.add_dialog_procaycabta
https://github.com/ruby/reline/commit/c4bb1bfd79
2021-12-19[ruby/reline] Clear dialog in pastingaycabta
https://github.com/ruby/reline/commit/dabf5313e0
2021-12-18[ruby/reline] Change a test method name to more appropriateaycabta
https://github.com/ruby/reline/commit/d014cc85b7
2021-12-13Prepare for removing RubyVM::JIT (#5262)Takashi Kokubun
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2021-12-13[ruby/reline] Remove unnecessary variables, lower_spaceaycabta
The number of lines below the cursor position was known by "@rest_height" alone, but the problem was caused by adding "lower_space". Remove "lower_space" as it is unnecessary. https://github.com/ruby/reline/commit/a575cef6a3
2021-12-10[ruby/reline] @convert_meta is true unless 8-bit charactersima1zumi
If Reline::IOGate.encoding contains 7-bit characters, convert-meta will set it On. Because in readline(3): > The default is On, but readline will set it to Off if the locale contains eight-bit characters. As far as I know, 7-bit encoding used in terminals is only US-ASCII. https://github.com/ruby/reline/commit/b71d1fa496
2021-12-10[ruby/reline] Execute compress_meta_key if convert_meta is onima1zumi
fix `#357` When using 8-bit characters, it is better not to use `compress_meta_key`. I believe not to use `compress_meta_key` unless `set convert-meta on` is written in the `.inputrc`. The following is a quote from tmtm's comments. > The behavior of this compress_meta_key method is similar to the behavior of convert-meta=on in readline, but readline turns off convert-meta if the locale contains 8bit characters. > In readline(3): > convert-meta (On) > If set to On, readline will convert characters with the eighth > bit set to an ASCII key sequence by stripping the eighth bit and > prefixing it with an escape character (in effect, using escape > as the meta prefix). The default is On, but readline will set > it to Off if the locale contains eight-bit characters. https://github.com/ruby/reline/commit/9491cc8542 Co-authored-by: TOMITA Masahiro <tommy@tmtm.org>
2021-11-21[ruby/reline] Correct padding space calculationima1zumi
fix https://github.com/ruby/irb/issues/308 This bug occurred when `dialog.width - calculate_width(s, true)` was negative. When `dialog.width` is shorter than `old_dialog.width`, it calculates how much padding it has to do. However, there are cases where `s` is longer than `dialog.width`, as in the issue. In that case, `padding_space_with_escape_sequences` will crash. Here, `old_dialog.width` is longer than `dialog.width`, so I changed the padding width to `old_dialog.width - dialog.width`. https://github.com/ruby/reline/commit/c581c31e0f
2021-10-13[ruby/reline] Skip when unable to set inputNobuyoshi Nakada
`Reline::Windows` always reads from the console by Windows API using fiddle. https://github.com/ruby/reline/commit/c3bf85f5af
2021-10-12[ruby/reline] Close working pipesNobuyoshi Nakada
https://github.com/ruby/reline/commit/ac519f57ea
2021-10-11[ruby/reline] Fix test class not to overwriteNobuyoshi Nakada
https://github.com/ruby/reline/commit/1e78984c49
2021-10-11[ruby/reline] Reline doesn't have Reline.editing_modeaycabta
https://github.com/ruby/reline/commit/90c61d8188
2021-10-11[ruby/reline] Add I/O testaycabta
https://github.com/ruby/reline/commit/bca9b9012f
2021-10-11[ruby/reline] Use single quotes to match the othersaycabta
https://github.com/ruby/reline/commit/58a7ca4101
2021-10-11[ruby/reline] Add a test for Reline.delete_textaycabta
https://github.com/ruby/reline/commit/d1c5700fa3
2021-10-11[ruby/reline] Add assertions for Reline.pointaycabta
https://github.com/ruby/reline/commit/a8c7b207f0
2021-10-11[ruby/reline] Add a test for Reline.insert_text and Reline.line_bufferaycabta
https://github.com/ruby/reline/commit/ae828208e1
2021-10-11[ruby/reline] Add tests for dialog with fullwidth chars and corner casesaycabta
https://github.com/ruby/reline/commit/35ab5d47a8
2021-10-09[ruby/reline] Fix tests to show dialog to the right edgeaycabta
https://github.com/ruby/reline/commit/6a0d0ada94
2021-10-09[ruby/reline] Add a test for full-width scrollbaraycabta
https://github.com/ruby/reline/commit/cff83e68f8
2021-10-08[ruby/reline] Add a test for narrow screen without scrollbaraycabta
https://github.com/ruby/reline/commit/44cd35e65d
2021-10-08[ruby/reline] Cut off the excess on narrow screenaycabta
https://github.com/ruby/reline/commit/972cc993ca
2021-10-05[ruby/reline] Reduce window size so that it can be displayed in my desktopaycabta
https://github.com/ruby/reline/commit/22359d50ab
2021-10-05[ruby/reline] Cyrillic chars are now forced to be displayed in full-width on ↵aycabta
Windows So testing is no longer necessary. https://github.com/ruby/reline/commit/c59589548b
2021-10-03[ruby/reline] Re-calc the scroll pos when the content in dialog is shortenedaycabta
https://github.com/ruby/reline/commit/12ea63e6e0