chess_board_sim/test/game_logic/test_game_state.cc
Daniel Weber b284eea463 fen_strings (#1)
Co-authored-by: Daniel Weber <djweber12@gmail.com>
Reviewed-on: djweber12/Chess_Board_Sim#1
Co-authored-by: Daniel Weber <djweber12@hotmail.com>
Co-committed-by: Daniel Weber <djweber12@hotmail.com>
2024-10-04 21:42:35 -04:00

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 -");
}