]> git.localhorst.tv Git - blank.git/blob - tst/io/TokenTest.hpp
0b78952af623873f83ce75960aad78ef09c6e509
[blank.git] / tst / io / TokenTest.hpp
1 #ifndef BLANK_TEST_IO_TOKENTEST_HPP
2 #define BLANK_TEST_IO_TOKENTEST_HPP
3
4 #include "io/Token.hpp"
5
6 #include <string>
7 #include <cppunit/extensions/HelperMacros.h>
8
9
10 namespace blank {
11
12 namespace test {
13
14 class TokenTest
15 : public CppUnit::TestFixture {
16
17 CPPUNIT_TEST_SUITE(TokenTest);
18
19 CPPUNIT_TEST(testTypeIO);
20 CPPUNIT_TEST(testTokenIO);
21
22 CPPUNIT_TEST_SUITE_END();
23
24 public:
25         void setUp();
26         void tearDown();
27
28         void testTypeIO();
29         void testTokenIO();
30
31         static void AssertStreamOutput(
32                 Token::Type, std::string expected);
33         static void AssertStreamOutput(
34                 const Token &, std::string expected);
35
36 };
37
38 }
39 }
40
41 #endif