From 01d82b8fcad37f7d8d29c33b4f1de0be477338c8 Mon Sep 17 00:00:00 2001 From: anon Date: Mon, 25 Sep 2023 21:51:40 +0200 Subject: [PATCH] one more bug --- source/main.cpp | 11 +++++------ source/test.hpp | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index 112c0e8..8f7a1c3 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -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); diff --git a/source/test.hpp b/source/test.hpp index 487c3f6..9ae7dc5 100644 --- a/source/test.hpp +++ b/source/test.hpp @@ -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); }