chess_board_sim/test/game_logic/test_game_state.cc

13 lines
351 B
C++
Raw Normal View History

2024-09-29 21:07:07 -04:00
#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 -");
}