new 4475edb243ed4627f4c5f2c470ca40b3def034d4
[tagua/yd.git] / tests / variants / boardtest.h
blob0c63c0225da5f8dac47b63fc0da437dcb4c9d7a4
1 #ifndef BOARDTEST_H
2 #define BOARDTEST_H
4 #include <cppunit/extensions/HelperMacros.h>
5 #include <cppunit/TestCaller.h>
6 #include <cppunit/TestResult.h>
7 #include <cppunit/TestFixture.h>
8 #include <cppunit/TestAssert.h>
10 class Board;
12 class BoardTest : public CppUnit::TestFixture {
13 CPPUNIT_TEST_SUITE(BoardTest);
14 CPPUNIT_TEST(test_size);
15 CPPUNIT_TEST(test_get_null);
16 CPPUNIT_TEST(test_set_get);
17 CPPUNIT_TEST(test_valid);
18 CPPUNIT_TEST(test_set_invalid);
19 CPPUNIT_TEST(test_compare);
20 CPPUNIT_TEST(test_clone);
21 CPPUNIT_TEST(test_find);
23 CPPUNIT_TEST(test_pathinfo_h);
24 CPPUNIT_TEST(test_pathinfo_v);
25 CPPUNIT_TEST(test_pathinfo_d);
26 CPPUNIT_TEST(test_pathinfo_invalid);
27 CPPUNIT_TEST(test_pathinfo_obstacles);
28 CPPUNIT_TEST_SUITE_END();
29 private:
30 Board* m_board;
31 public:
32 void setUp();
33 void tearDown();
35 // basic stuff
36 void test_size();
37 void test_get_null();
38 void test_set_get();
39 void test_valid();
40 void test_set_invalid();
41 void test_compare();
42 void test_clone();
43 void test_find();
45 // path info
46 void test_pathinfo_h();
47 void test_pathinfo_v();
48 void test_pathinfo_d();
49 void test_pathinfo_invalid();
50 void test_pathinfo_obstacles();
53 #endif // BOARDTEST_H