mirror of
https://github.com/EasyRPG/Player.git
synced 2026-10-25 15:57:14 +00:00
32 lines
517 B
C++
32 lines
517 B
C++
#include "game_event.h"
|
|
#include "doctest.h"
|
|
#include "options.h"
|
|
#include "game_map.h"
|
|
#include "main_data.h"
|
|
#include <climits>
|
|
|
|
TEST_SUITE_BEGIN("Game_Event");
|
|
|
|
TEST_CASE("IdName") {
|
|
{
|
|
lcf::rpg::Event event;
|
|
Game_Event ch(0, &event);
|
|
|
|
REQUIRE_EQ(ch.GetId(), event.ID);
|
|
REQUIRE_EQ(ch.GetName(), event.name);
|
|
}
|
|
|
|
{
|
|
lcf::rpg::Event event;
|
|
event.ID = 5;
|
|
event.name = "X";
|
|
|
|
Game_Event ch(0, &event);
|
|
|
|
REQUIRE_EQ(ch.GetId(), event.ID);
|
|
REQUIRE_EQ(ch.GetName(), event.name);
|
|
}
|
|
}
|
|
|
|
TEST_SUITE_END();
|