helix-mods/helix-term/tests/test
Skyler Hawthorne 58ea193054 Allow explicit newlines in test DSL
The current test DSL currently has no way to express being at the end of
a line, save for putting an explicit LF or CRLF inside the `#[|]#`. The
problem with this approach is that it can add unintended extra new lines
if used in conjunction with raw strings, which insert newlines for you.

This is a simple attempt to mitigate this problem. If there is an
explicit newline character at the end of the selection, and then it
is immediately followed by the same newline character at the right end
of the selection, this following newline is removed. This way, one can
express a cursor at the end of a line explicitly.
2023-03-20 18:34:40 -05:00
..
commands factor write command tests to own module 2023-03-20 18:34:40 -05:00
auto_indent.rs make TestCase::From more generic 2023-03-20 18:34:40 -05:00
auto_pairs.rs flush writes on force quit (#4397) 2022-10-21 13:28:29 +09:00
commands.rs Allow explicit newlines in test DSL 2023-03-20 18:34:40 -05:00
helpers.rs refactor test editor config 2023-03-20 18:34:40 -05:00
movement.rs make TestCase::From more generic 2023-03-20 18:34:40 -05:00
prompt.rs flush writes on force quit (#4397) 2022-10-21 13:28:29 +09:00
splits.rs Fix transaction composition order in History::changes_since (#4981) 2022-12-03 12:09:08 +09:00