Skip to content

Commit

Permalink
Replaced TODO in numeric test with two passing tests.
Browse files Browse the repository at this point in the history
Just getting to grips with how the tokenizer behaves.
  • Loading branch information
johnsyweb committed Sep 26, 2010
1 parent acad87c commit 5dc4759
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/testtoken.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ class TestToken : public TestFixture
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%"));
}


Expand Down

0 comments on commit 5dc4759

Please sign in to comment.