X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=tests%2Fmath%2FFixedTest.h;fp=tests%2Fmath%2FFixedTest.h;h=8b0c8bb47fa1fd70fd9707eac8116a98416cd6fb;hb=06db9f596cd1c5aa4c0832b387882f7c74c1b4c0;hp=0000000000000000000000000000000000000000;hpb=a3ba4dc677ad7c92eeb78b20b642241563605c9d;p=l2e.git diff --git a/tests/math/FixedTest.h b/tests/math/FixedTest.h new file mode 100644 index 0000000..8b0c8bb --- /dev/null +++ b/tests/math/FixedTest.h @@ -0,0 +1,38 @@ +#ifndef TEST_MATH_FIXEDTEST_H_ +#define TEST_MATH_FIXEDTEST_H_ + +#include "../../src/math/Fixed.h" + +#include +#include +#include + + +namespace test_math { + +class FixedTest +: public CppUnit::TestFixture { + +CPPUNIT_TEST_SUITE(FixedTest); +CPPUNIT_TEST(testConversion); +CPPUNIT_TEST(testComparison); +CPPUNIT_TEST(testSum); +CPPUNIT_TEST(testProduct); +CPPUNIT_TEST(testModulo); +CPPUNIT_TEST_SUITE_END(); + +public: + void setUp(); + void tearDown(); + + void testConversion(); + void testComparison(); + void testSum(); + void testProduct(); + void testModulo(); + +}; + +} + +#endif