one more bug

This commit is contained in:
anon 2023-09-25 21:51:40 +02:00
parent 13a150d682
commit 01d82b8fca
2 changed files with 6 additions and 7 deletions

View File

@ -117,12 +117,11 @@ signed main() {
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);
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", "/* asd */", true);
TEST(R"del(/\*[\d\D]*\*/)del", "/* as* */", true);
if (test_counter == passed_tests) {
fputs("\033[32m", stdout);

View File

@ -23,7 +23,7 @@ void asprint_match_t( char * * destination,
static
void print_leader(const bool passed, const int n) {
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 {
printf("\033[31;1mFailure\033[0m. %02d\033[1m - \033[0m", n);
}