Skip to content

Commit

Permalink
#410: skeleton test suite for the CommandManager
Browse files Browse the repository at this point in the history
Currently a single trivial test which confirms only that we can obtain
the CommandManager module.
  • Loading branch information
Matthew Mott committed Jun 29, 2022
1 parent 1f8842d commit 231ffcf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions libs/parser/Tokeniser.h
@@ -1,6 +1,7 @@
#pragma once

#include <string>
#include <iterator>
#include "string/tokeniser.h"
#include "ParseException.h"

Expand Down
1 change: 1 addition & 0 deletions test/CMakeLists.txt
Expand Up @@ -5,6 +5,7 @@ add_executable(drtest
Brush.cpp
Camera.cpp
ColourSchemes.cpp
CommandSystem.cpp
ContinuousBuffer.cpp
CSG.cpp
Entity.cpp
Expand Down
14 changes: 14 additions & 0 deletions 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");
}

}

0 comments on commit 231ffcf

Please sign in to comment.