Skip to content

Commit

Permalink
Fix bug and forgot to change version
Browse files Browse the repository at this point in the history
Fix bug when printing with % (percent sign)
  • Loading branch information
Hans5958 committed May 22, 2020
1 parent 8dc4a5a commit d3559c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ fi
test() {
local message="blank"
local test_name=$1
local test_result=$2
local test_result=${2//%/%%}
local optional=${3:-true}
local supp=${4:-false}

Expand Down Expand Up @@ -154,7 +154,7 @@ test() {
else
cecho "$message"
fi
(! $NO_ANSI) && cecho "\e[0;97mTesting... \e[0;37m($((TEST_MAIN_OK + TEST_SUPP_OK)) passed, $((TEST_MAIN_FAIL + TEST_SUPP_FAIL)) failed, $((TEST_MAIN_SKIP + TEST_SUPP_SKIP)) skipped, $(((TEST_MAIN_OK + TEST_MAIN_FAIL + TEST_MAIN_SKIP + TEST_SUPP_OK + TEST_SUPP_FAIL + TEST_SUPP_SKIP)*100/(30+ TEST_SUPP_OK + TEST_SUPP_FAIL + TEST_SUPP_SKIP)))%%)"
(! $NO_ANSI) && cecho "\e[0;97mTesting... \e[0;37m($((TEST_MAIN_OK + TEST_SUPP_OK)) passed, $((TEST_MAIN_FAIL + TEST_SUPP_FAIL)) failed, $((TEST_MAIN_SKIP + TEST_SUPP_SKIP)) skipped, $(((TEST_MAIN_OK + TEST_MAIN_FAIL + TEST_MAIN_SKIP + TEST_SUPP_OK + TEST_SUPP_FAIL + TEST_SUPP_SKIP)*100/(34+ TEST_SUPP_OK + TEST_SUPP_FAIL + TEST_SUPP_SKIP)))%%)"
fi
}

Expand Down

0 comments on commit d3559c2

Please sign in to comment.