summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Slenders <jonathan@slenders.be>2016-07-21 22:42:52 +0200
committerJonathan Slenders <jonathan@slenders.be>2016-07-21 22:42:52 +0200
commitbe68caacffec4695379fd241903689e5e6731688 (patch)
tree5aae37f0f21863bced36a43a4201439d491005ec
parentc5b07a4228b5b4cb20953d02d608ea8cd8f71c38 (diff)
Added unit test for kill-line with negative argument.
-rw-r--r--tests/test_cli.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_cli.py b/tests/test_cli.py
index c4289385..3907a67d 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -129,6 +129,10 @@ def test_emacs_cursor_movements():
result, cli = _feed_cli_with_input('hello\x1b[D\x1b[D\x0b\n')
assert result.text == 'hel'
+ # Left, Left Esc- ControlK (kill-line, but negative)
+ result, cli = _feed_cli_with_input('hello\x1b[D\x1b[D\x1b-\x0b\n')
+ assert result.text == 'lo'
+
# ControlL: should not influence the result.
result, cli = _feed_cli_with_input('hello\x0c\n')
assert result.text == 'hello'