File: chessmovetest.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 (35 lines) | stat: -rw-r--r-- 741 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
#ifndef CHESSMOVETEST_H
#define CHESSMOVETEST_H

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

// forward decl
namespace HLVariant {
  namespace Chess {
    class Move;
  }
}

typedef HLVariant::Chess::Move ChessMove;

class ChessMoveTest : public CppUnit::TestFixture {
  CPPUNIT_TEST_SUITE(ChessMoveTest);
  CPPUNIT_TEST(test_capture_square);
  CPPUNIT_TEST(test_en_passant_trigger);
  CPPUNIT_TEST(test_promotion);
  CPPUNIT_TEST_SUITE_END();
public:
  void setUp();
  void tearDown();
  
  void test_capture_square();
  void test_en_passant_trigger();
  void test_promotion();
};

#endif // CHESSMOVETEST_H