From 5dc47595980838e11c94e4e2e59fafbfd777bd20 Mon Sep 17 00:00:00 2001 From: Pete Johns Date: Sun, 26 Sep 2010 16:39:19 +1000 Subject: [PATCH] Replaced TODO in numeric test with two passing tests. Just getting to grips with how the tokenizer behaves. --- test/testtoken.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/testtoken.cpp b/test/testtoken.cpp index c98b0bed6..4e05af662 100644 --- a/test/testtoken.cpp +++ b/test/testtoken.cpp @@ -191,7 +191,10 @@ private: ASSERT_EQUALS(true, Token::Match(hexadecimal.tokens(), "%num%")); 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%")); }