]> git.localhorst.tv Git - l2e.git/blobdiff - tests/geometry/VectorTest.h
added first unit test
[l2e.git] / tests / geometry / VectorTest.h
diff --git a/tests/geometry/VectorTest.h b/tests/geometry/VectorTest.h
new file mode 100644 (file)
index 0000000..e6e2b29
--- /dev/null
@@ -0,0 +1,36 @@
+#ifndef TEST_GEOMETRY_VECTORTEST_H_
+#define TEST_GEOMETRY_VECTORTEST_H_
+
+#include "../../src/geometry/Vector.h"
+
+#include <cppunit/extensions/HelperMacros.h>
+
+
+namespace test_geometry {
+
+class VectorTest
+: public CppUnit::TestFixture {
+
+CPPUNIT_TEST_SUITE(VectorTest);
+CPPUNIT_TEST(testComparison);
+CPPUNIT_TEST(testSum);
+CPPUNIT_TEST(testProduct);
+CPPUNIT_TEST(testModulo);
+CPPUNIT_TEST(testFunctional);
+CPPUNIT_TEST_SUITE_END();
+
+public:
+       void setUp();
+       void tearDown();
+
+       void testComparison();
+       void testSum();
+       void testProduct();
+       void testModulo();
+       void testFunctional();
+
+};
+
+}
+
+#endif