]> git.localhorst.tv Git - l2e.git/blob - tests/math/FixedTest.h
added fixed point number type
[l2e.git] / tests / math / FixedTest.h
1 #ifndef TEST_MATH_FIXEDTEST_H_
2 #define TEST_MATH_FIXEDTEST_H_
3
4 #include "../../src/math/Fixed.h"
5
6 #include <cmath>
7 #include <limits>
8 #include <cppunit/extensions/HelperMacros.h>
9
10
11 namespace test_math {
12
13 class FixedTest
14 : public CppUnit::TestFixture {
15
16 CPPUNIT_TEST_SUITE(FixedTest);
17 CPPUNIT_TEST(testConversion);
18 CPPUNIT_TEST(testComparison);
19 CPPUNIT_TEST(testSum);
20 CPPUNIT_TEST(testProduct);
21 CPPUNIT_TEST(testModulo);
22 CPPUNIT_TEST_SUITE_END();
23
24 public:
25         void setUp();
26         void tearDown();
27
28         void testConversion();
29         void testComparison();
30         void testSum();
31         void testProduct();
32         void testModulo();
33
34 };
35
36 }
37
38 #endif