fixed fauilty tests

This commit is contained in:
anon 2023-09-25 15:48:12 +02:00
parent c96567dc44
commit 13a150d682

View File

@ -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 {