File: chesswrappedtest.h

package info (click to toggle)
tagua 1.0~alpha2-15
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 8,028 kB
  • ctags: 7,178
  • sloc: cpp: 26,149; ansic: 13,039; makefile: 182; ruby: 87; sh: 39
file content (37 lines) | stat: -rw-r--r-- 841 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef CHESSWRAPPEDTEST_H
#define CHESSWRAPPEDTEST_H

#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/TestCaller.h>
#include <cppunit/TestResult.h>
#include <cppunit/TestFixture.h>
#include <cppunit/TestAssert.h>

#include "fwd.h"

class ChessWrappedTest : public CppUnit::TestFixture {
  CPPUNIT_TEST_SUITE(ChessWrappedTest);
  CPPUNIT_TEST(test_setup);
  CPPUNIT_TEST(test_move);
  CPPUNIT_TEST(test_movable);
  CPPUNIT_TEST(test_san1);
  CPPUNIT_TEST(test_get_move1);
  CPPUNIT_TEST(test_fools_mate);
  CPPUNIT_TEST(test_check);
  CPPUNIT_TEST_SUITE_END();
private:
  PositionPtr m_pos;
public:
  void setUp();
  void tearDown();
  
  void test_setup();
  void test_move();
  void test_movable();
  void test_san1();
  void test_get_move1();
  void test_fools_mate();
  void test_check();
};

#endif // CHESSWRAPPEDTEST_H