Compare commits
2 Commits
b645de7bdf
...
13a150d682
Author | SHA1 | Date | |
---|---|---|---|
13a150d682 | |||
c96567dc44 |
@ -115,6 +115,15 @@ signed main() {
|
||||
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) {
|
||||
fputs("\033[32m", stdout);
|
||||
} else {
|
||||
|
@ -25,7 +25,7 @@ void print_leader(const bool passed, const int n) {
|
||||
if (passed) {
|
||||
printf("\033[32;1mSuccess\033[0m. %02d\033[1m - \033[0m", n);
|
||||
} 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user