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