Add count_left_prompt_height test

This commit is contained in:
Ilan Cosman 2020-08-09 17:31:27 -07:00
parent b0965ddb24
commit fa065ec72d

View 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