13 lines
351 B
C++
13 lines
351 B
C++
#include <gtest/gtest.h>
|
|
#include "game_state.h"
|
|
#include "fen_strings.h"
|
|
|
|
// Demonstrate some basic assertions.
|
|
TEST(GameLogic, initialized_state) {
|
|
// Expect two strings not to be equal.
|
|
game_state_init();
|
|
char * test_data = fen_string_get_state();
|
|
EXPECT_STREQ(test_data, "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -");
|
|
}
|
|
|