Skip to content

Commit

Permalink
Merge branch 'chr_Fix11438' of https://github.com/chrchr-github/cppcheck
Browse files Browse the repository at this point in the history
 into chr_Fix11438
  • Loading branch information
chrchr-github committed Sep 13, 2023
2 parents f7f0250 + e1c2745 commit 329d29b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testtoken.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ class TestToken : public TestFixture {
ASSERT_EQUALS(false, Token::Match(sLiteral.tokens(), "%num%"));

givenACodeSampleToTokenize binary("101010b", true);
ASSERT_EQUALS(true, Token::Match(binary.tokens(), "%num%"));
ASSERT_EQUALS(false, Token::Match(binary.tokens(), "%num%"));

givenACodeSampleToTokenize octal("0123", true);
ASSERT_EQUALS(true, Token::Match(octal.tokens(), "%num%"));
Expand All @@ -659,7 +659,7 @@ class TestToken : public TestFixture {
ASSERT_EQUALS(true, Token::Match(floatingPoint.tokens(), "%num%"));

givenACodeSampleToTokenize doublePrecision("0.0d", true);
ASSERT_EQUALS(true, Token::Match(doublePrecision.tokens(), "%num%"));
ASSERT_EQUALS(false, Token::Match(doublePrecision.tokens(), "%num%"));

givenACodeSampleToTokenize signedLong("0L", true);
ASSERT_EQUALS(true, Token::Match(signedLong.tokens(), "%num%"));
Expand Down

0 comments on commit 329d29b

Please sign in to comment.