Token: Added testcase for matching of %op%
This commit is contained in:
parent
57869e96e3
commit
af60f2c4ef
|
@ -230,6 +230,12 @@ private:
|
|||
ASSERT_EQUALS(true, Token::Match(logicalOr.tokens(), "&&|%oror%"));
|
||||
ASSERT_EQUALS(true, Token::Match(logicalOr.tokens(), "%oror%|&&"));
|
||||
}
|
||||
|
||||
void matchOp()
|
||||
{
|
||||
givenACodeSampleToTokenize op("+");
|
||||
ASSERT_EQUALS(true, Token::Match(op.tokens(), "%op%"));
|
||||
}
|
||||
};
|
||||
|
||||
REGISTER_TEST(TestToken)
|
||||
|
|
Loading…
Reference in New Issue