From 083af9a3b1faf2d5c0af0989001531f4c895e615 Mon Sep 17 00:00:00 2001 From: deathaxe Date: Mon, 23 Dec 2024 11:20:03 +0100 Subject: [PATCH] CI: adjust syntax tests --- tests/_Syntax_Failure/syntax_test_fail.c++ | 4 ++-- tests/_Syntax_Success/syntax_test_success.c++ | 4 ++-- tests/test_3141596.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/_Syntax_Failure/syntax_test_fail.c++ b/tests/_Syntax_Failure/syntax_test_fail.c++ index c3b3db6a..4af04b6e 100644 --- a/tests/_Syntax_Failure/syntax_test_fail.c++ +++ b/tests/_Syntax_Failure/syntax_test_fail.c++ @@ -9,8 +9,8 @@ /* foo */ // ^ source.c comment.block -// <- punctuation.definition.comment.c -// ^ punctuation.definition.comment.c +// <- punctuation.definition.comment +// ^ punctuation.definition.comment #include "stdio.h" // <- meta.preprocessor diff --git a/tests/_Syntax_Success/syntax_test_success.c++ b/tests/_Syntax_Success/syntax_test_success.c++ index be89c137..f7ea4533 100644 --- a/tests/_Syntax_Success/syntax_test_success.c++ +++ b/tests/_Syntax_Success/syntax_test_success.c++ @@ -9,8 +9,8 @@ /* foo */ // ^ source.c comment.block -// <- punctuation.definition.comment.c -// ^ punctuation.definition.comment.c +// <- punctuation.definition.comment +// ^ punctuation.definition.comment #include "stdio.h" // <- meta.preprocessor diff --git a/tests/test_3141596.py b/tests/test_3141596.py index 4d24a32c..4a081be3 100644 --- a/tests/test_3141596.py +++ b/tests/test_3141596.py @@ -162,7 +162,7 @@ class TestSyntax(UnitTestingTestCase): @with_package("_Syntax_Failure", syntax_test=True) def test_fail_syntax(self, txt): - self.assertRegexContains(txt, r'^FAILED: 1 of 21 assertions in 1 file failed$') + self.assertRegexContains(txt, r'^FAILED: 1 of \d+ assertions in 1 file failed$') @with_package("_Syntax_Success", syntax_test=True) def test_success_syntax(self, txt):