mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-30 15:15:19 +03:00
Add cursor movement tests
This commit is contained in:
parent
673131a419
commit
0d1a77f780
5
tide_theme/tests/cursor_right.fish
Normal file
5
tide_theme/tests/cursor_right.fish
Normal 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"
|
5
tide_theme/tests/cursor_up.fish
Normal file
5
tide_theme/tests/cursor_up.fish
Normal 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"
|
Loading…
Reference in New Issue
Block a user