mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-30 15:15:19 +03:00
Add count_left_prompt_height test
This commit is contained in:
parent
b0965ddb24
commit
fa065ec72d
10
tide_theme/tests/count_left_prompt_height.fish
Normal file
10
tide_theme/tests/count_left_prompt_height.fish
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
@mesg '---------cmd_duration---------'
|
||||||
|
|
||||||
|
function _count_left_prompt_height
|
||||||
|
set -lx tide_left_prompt_items $argv
|
||||||
|
_tide_count_left_prompt_height
|
||||||
|
printf '%s' $_tide_left_prompt_height
|
||||||
|
end
|
||||||
|
|
||||||
|
@test 'Single line' (_count_left_prompt_height pwd git_prompt prompt_char) -eq 1
|
||||||
|
@test 'Double line' (_count_left_prompt_height pwd git_prompt newline prompt_char) -eq 2
|
Loading…
Reference in New Issue
Block a user