Compare commits

...

2 Commits

Author SHA1 Message Date
13a150d682 fixed fauilty tests 2023-09-25 15:48:12 +02:00
c96567dc44 fixed spelling mistake 2023-09-25 15:47:18 +02:00
2 changed files with 10 additions and 1 deletions

View File

@ -115,6 +115,15 @@ signed main() {
TEST(R"del(\<while\>)del", "for while {", true); TEST(R"del(\<while\>)del", "for while {", true);
TEST(R"del(\<while\>)del", "for while{", true); TEST(R"del(\<while\>)del", "for while{", true);
puts("");
TEST(R"del(/\*[\d\D]*\*/)del", "908", false);
TEST(R"del(/\*[\d\D]*\*/)del", "/*908*/", true);
TEST(R"del(/\*[\d\D]*\*/)del", "/*asd*/", true);
TEST(R"del(/\*[\d\D]*\*/)del", "/* 908 */", true);
TEST(R"del(/\*[\d\D]*\*/)del", "/* asd */", true);
TEST(R"del(/\*[\d\D]*\*/)del", "/* as\nd */", true);
if (test_counter == passed_tests) { if (test_counter == passed_tests) {
fputs("\033[32m", stdout); fputs("\033[32m", stdout);
} else { } else {

View File

@ -25,7 +25,7 @@ void print_leader(const bool passed, const int n) {
if (passed) { if (passed) {
printf("\033[32;1mSuccess\033[0m. %02d\033[1m - \033[0m", n); printf("\033[32;1mSuccess\033[0m. %02d\033[1m - \033[0m", n);
} else { } else {
printf("\033[31;1mFailiour\033[0m. %02d\033[1m - \033[0m", n); printf("\033[31;1mFailure\033[0m. %02d\033[1m - \033[0m", n);
} }
} }