X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Fio%2FTokenTest.hpp;fp=tst%2Fio%2FTokenTest.hpp;h=0b78952af623873f83ce75960aad78ef09c6e509;hb=7d462272350926dca8e1a8c94fdb527d0c9f6dc1;hp=0000000000000000000000000000000000000000;hpb=58c8fefb8cf80322ae165830c117ac1e3e34d32b;p=blank.git diff --git a/tst/io/TokenTest.hpp b/tst/io/TokenTest.hpp new file mode 100644 index 0000000..0b78952 --- /dev/null +++ b/tst/io/TokenTest.hpp @@ -0,0 +1,41 @@ +#ifndef BLANK_TEST_IO_TOKENTEST_HPP +#define BLANK_TEST_IO_TOKENTEST_HPP + +#include "io/Token.hpp" + +#include +#include + + +namespace blank { + +namespace test { + +class TokenTest +: public CppUnit::TestFixture { + +CPPUNIT_TEST_SUITE(TokenTest); + +CPPUNIT_TEST(testTypeIO); +CPPUNIT_TEST(testTokenIO); + +CPPUNIT_TEST_SUITE_END(); + +public: + void setUp(); + void tearDown(); + + void testTypeIO(); + void testTokenIO(); + + static void AssertStreamOutput( + Token::Type, std::string expected); + static void AssertStreamOutput( + const Token &, std::string expected); + +}; + +} +} + +#endif