1 #ifndef BLANK_TEST_IO_TOKENTEST_HPP
2 #define BLANK_TEST_IO_TOKENTEST_HPP
4 #include "io/Token.hpp"
5 #include "io/Tokenizer.hpp"
8 #include <cppunit/extensions/HelperMacros.h>
16 : public CppUnit::TestFixture {
18 CPPUNIT_TEST_SUITE(TokenTest);
20 CPPUNIT_TEST(testTypeIO);
21 CPPUNIT_TEST(testTokenIO);
22 CPPUNIT_TEST(testTokenizer);
23 CPPUNIT_TEST(testTokenizerBrokenComment);
25 CPPUNIT_TEST_SUITE_END();
34 void testTokenizerBrokenComment();
36 static void AssertStreamOutput(
37 Token::Type, std::string expected);
38 static void AssertStreamOutput(
39 const Token &, std::string expected);
41 static void AssertHasMore(Tokenizer &);
42 static void AssertToken(
43 Token::Type expected_type, const Token &actual_token);
44 static void AssertToken(
45 Token::Type expected_type, std::string expected_value,
46 const Token &actual_token);