Fix tests

This commit is contained in:
Ilan Cosman 2020-11-24 12:59:30 -08:00
parent 41644062c4
commit 3f7ed96687
2 changed files with 2 additions and 12 deletions

View File

@ -1,3 +1,3 @@
function _tide_decolor -a text
string replace --all --regex '\e(\[[\d;]*|\(B\e\[)m' '' "$text"
function _tide_decolor
string replace --all --regex '\e(\[[\d;]*|\(B\e\[)m' '' "$argv"
end

View File

@ -1,10 +0,0 @@
@mesg '---------count_left_prompt_height---------'
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