]> git.localhorst.tv Git - blank.git/blobdiff - tst/io/TokenTest.hpp
test for Token
[blank.git] / tst / io / TokenTest.hpp
diff --git a/tst/io/TokenTest.hpp b/tst/io/TokenTest.hpp
new file mode 100644 (file)
index 0000000..0b78952
--- /dev/null
@@ -0,0 +1,41 @@
+#ifndef BLANK_TEST_IO_TOKENTEST_HPP
+#define BLANK_TEST_IO_TOKENTEST_HPP
+
+#include "io/Token.hpp"
+
+#include <string>
+#include <cppunit/extensions/HelperMacros.h>
+
+
+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