Skip to content

Commit

Permalink
update for hercules v2018.08.26
Browse files Browse the repository at this point in the history
  • Loading branch information
Helianthella committed Aug 29, 2018
1 parent 1f85116 commit 4ca740c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .tools/scripts/unit_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ function script hashtable_test {
if (getarg(0)) {
.stats[1]++;
if (.use_debugmes) {
debugmes(sprintf("\033[0;32mSuccess:\033[0m %s.", getarg(1)));
debugmes("\033[0;32mSuccess:\033[0m %s.", getarg(1));
} else {
mesf("Success: %s.", getarg(1));
}
} else {
if (.use_debugmes) {
debugmes(sprintf("\033[0;31mError:\033[0m %s.", getarg(1)));
debugmes("\033[0;31mError:\033[0m %s.", getarg(1));
} else {
mesf("Error: %s.", getarg(1));
}
Expand Down Expand Up @@ -63,7 +63,7 @@ function script hashtable_test {
assert(htdelete(3), "delete hashtable 3");

if (.use_debugmes) {
debugmes(sprintf("Tests complete. [%02d/%02d]", .stats[1], .stats[0]));
debugmes("Tests complete. [%02d/%02d]", .stats[1], .stats[0]);
} else {
mesf("Tests complete. [%02d/%02d]", .stats[1], .stats[0]);
}
Expand Down

0 comments on commit 4ca740c

Please sign in to comment.