diff --git a/tide_theme/tests/count_left_prompt_height.fish b/tide_theme/tests/count_left_prompt_height.fish new file mode 100644 index 0000000..007545f --- /dev/null +++ b/tide_theme/tests/count_left_prompt_height.fish @@ -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 \ No newline at end of file