Skip to content

Commit

Permalink
CI: adjust syntax tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Dec 23, 2024
1 parent e478910 commit 083af9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/_Syntax_Failure/syntax_test_fail.c++
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/_Syntax_Success/syntax_test_success.c++
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_3141596.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 083af9a

Please sign in to comment.