From 231ffcf489a443fa73ce87034bafd84959b4181f Mon Sep 17 00:00:00 2001 From: Matthew Mott Date: Wed, 29 Jun 2022 19:57:14 +0100 Subject: [PATCH] #410: skeleton test suite for the CommandManager Currently a single trivial test which confirms only that we can obtain the CommandManager module. --- libs/parser/Tokeniser.h | 1 + test/CMakeLists.txt | 1 + test/CommandSystem.cpp | 14 ++++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 test/CommandSystem.cpp diff --git a/libs/parser/Tokeniser.h b/libs/parser/Tokeniser.h index c65ba11cd1..03274e484d 100644 --- a/libs/parser/Tokeniser.h +++ b/libs/parser/Tokeniser.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include "string/tokeniser.h" #include "ParseException.h" diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 09dbb10dd8..b6c1d1d569 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -5,6 +5,7 @@ add_executable(drtest Brush.cpp Camera.cpp ColourSchemes.cpp + CommandSystem.cpp ContinuousBuffer.cpp CSG.cpp Entity.cpp diff --git a/test/CommandSystem.cpp b/test/CommandSystem.cpp new file mode 100644 index 0000000000..cdbd4caa85 --- /dev/null +++ b/test/CommandSystem.cpp @@ -0,0 +1,14 @@ +#include "RadiantTest.h" + +namespace test +{ + +using CommandSystemTest = RadiantTest; + +TEST_F(CommandSystemTest, GetCommandSystem) +{ + const auto& mod = GlobalCommandSystem(); + EXPECT_EQ(mod.getName(), "CommandSystem"); +} + +} \ No newline at end of file