feat: add new test for check setup of light256 theme

This commit is contained in:
Maciej Sypien 2024-09-21 18:34:47 +02:00
parent 9a3d379b76
commit 26522d4901
No known key found for this signature in database
GPG key ID: 10BC01EDA6827DC8
5 changed files with 82 additions and 25 deletions

View file

@ -24,8 +24,12 @@ helper_tearup_linux() {
}
helper_print_fail() {
local _msg="${1:-}"
local _msg="${1}"
local _current_val="${2}"
local _expected_val="${3}"
printf "FAIL. %s\n" "${_msg}"
printf "current value:\t%s" "$_current_val"
printf "expected value:\t%s" "$_expected_val"
}
helper_print_success() {
@ -34,12 +38,12 @@ helper_print_success() {
}
helper_print_fail_and_exit() {
helper_print_fail "$1"
helper_print_fail "$1" "$2" "$3"
exit 1
}
helper_print_success_and_exit() {
helper_print_success "$1"
helper_print_success "$1" "$2" "$3"
exit 0
}