]> git.localhorst.tv Git - blank.git/blobdiff - tst/world/ChunkTest.hpp
some tests for Chunk
[blank.git] / tst / world / ChunkTest.hpp
diff --git a/tst/world/ChunkTest.hpp b/tst/world/ChunkTest.hpp
new file mode 100644 (file)
index 0000000..00d0570
--- /dev/null
@@ -0,0 +1,39 @@
+#ifndef BLANK_TEST_WORLD_CHUNKTEST_H_
+#define BLANK_TEST_WORLD_CHUNKTEST_H_
+
+#include "world/BlockTypeRegistry.hpp"
+
+#include <cppunit/extensions/HelperMacros.h>
+
+
+namespace blank {
+namespace test {
+
+class ChunkTest
+: public CppUnit::TestFixture {
+
+CPPUNIT_TEST_SUITE(ChunkTest);
+
+CPPUNIT_TEST(testBounds);
+CPPUNIT_TEST(testBorder);
+CPPUNIT_TEST(testNeighbor);
+
+CPPUNIT_TEST_SUITE_END();
+
+public:
+       void setUp();
+       void tearDown();
+
+       void testBounds();
+       void testBorder();
+       void testNeighbor();
+
+private:
+       BlockTypeRegistry types;
+
+};
+
+}
+}
+
+#endif