Replaced TODO in numeric test with two passing tests.
Just getting to grips with how the tokenizer behaves.
This commit is contained in:
parent
acad87c3e3
commit
5dc4759598
|
@ -191,7 +191,10 @@ private:
|
||||||
ASSERT_EQUALS(true, Token::Match(hexadecimal.tokens(), "%num%"));
|
ASSERT_EQUALS(true, Token::Match(hexadecimal.tokens(), "%num%"));
|
||||||
|
|
||||||
givenACodeSampleToTokenize positive("+666");
|
givenACodeSampleToTokenize positive("+666");
|
||||||
TODO_ASSERT_EQUALS(true, Token::Match(positive.tokens(), "%num%"));
|
ASSERT_EQUALS(true, Token::Match(positive.tokens(), "+ %num%"));
|
||||||
|
|
||||||
|
givenACodeSampleToTokenize negative("-42");
|
||||||
|
ASSERT_EQUALS(true, Token::Match(negative.tokens(), "- %num%"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue