]> git.localhorst.tv Git - blobs.git/blob - tst/math/GaloisLFSRTest.hpp
little cleanup
[blobs.git] / tst / math / GaloisLFSRTest.hpp
1 #ifndef BLOBS_TEST_MATH_GALOISLFSRTEST_HPP
2 #define BLOBS_TEST_MATH_GALOISLFSRTEST_HPP
3
4 #include <cppunit/extensions/HelperMacros.h>
5
6 #include <string>
7 #include <vector>
8
9
10 namespace blobs {
11 namespace math {
12 namespace test {
13
14 class GaloisLFSRTest
15 : public CppUnit::TestFixture {
16
17 CPPUNIT_TEST_SUITE(GaloisLFSRTest);
18
19 CPPUNIT_TEST(testFloatNorm);
20 CPPUNIT_TEST(testFromContainer);
21
22 CPPUNIT_TEST_SUITE_END();
23
24 public:
25         void setUp();
26         void tearDown();
27
28         void testFloatNorm();
29         void testFromContainer();
30
31         /// check if value is in range [minimum,maximum]
32         static void AssertBetween(
33                 std::string message,
34                 float minimum,
35                 float maximum,
36                 float actual);
37
38         static void AssertContains(
39                 std::string message,
40                 const std::vector<int> &container,
41                 int element);
42
43 };
44
45 }
46 }
47 }
48
49 #endif