X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=tests%2Fmath%2FRationalTest.h;fp=tests%2Fmath%2FRationalTest.h;h=e28816098859e5f2fcb6fa73d89feac34051dab1;hb=7df7c6eca83c2b5c0ee17c55340d8863f9d638f5;hp=0000000000000000000000000000000000000000;hpb=a49be7b8db5f9c5c1073d0a3e3da62f99324d0f1;p=l2e.git diff --git a/tests/math/RationalTest.h b/tests/math/RationalTest.h new file mode 100644 index 0000000..e288160 --- /dev/null +++ b/tests/math/RationalTest.h @@ -0,0 +1,37 @@ +#ifndef TEST_MATH_RATIONALTEST_H_ +#define TEST_MATH_RATIONALTEST_H_ + +#include "../../src/math/Rational.h" + +#include +#include +#include + + +namespace test_math { + +class RationalTest +: public CppUnit::TestFixture { + +CPPUNIT_TEST_SUITE(RationalTest); +CPPUNIT_TEST(testConversion); +CPPUNIT_TEST(testComparison); +CPPUNIT_TEST(testSum); +CPPUNIT_TEST(testProduct); +CPPUNIT_TEST_SUITE_END(); + +public: + void setUp(); + void tearDown(); + + void testConversion(); + void testComparison(); + void testSum(); + void testProduct(); + void testModulo(); + +}; + +} + +#endif