Add cursor movement tests

This commit is contained in:
Ilan Cosman 2020-08-09 18:02:36 -07:00
parent 673131a419
commit 0d1a77f780
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,5 @@
@mesg '---------cmd_duration---------'
set -lx text 'hello'
@test 'Move cursor' (string escape (_tide_cursor_right 5 && echo $text)) = "\e\[1C\e\[1C\e\[1C\e\[1C\e\[1C$text"

View File

@ -0,0 +1,5 @@
@mesg '---------cmd_duration---------'
set -lx text 'hello'
@test 'Move cursor' (string escape (_tide_cursor_up 5 && echo $text)) = "\e\[1A\e\[1A\e\[1A\e\[1A\e\[1Ahello"