summaryrefslogtreecommitdiff
path: root/src/unittest/test_gameui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/unittest/test_gameui.cpp')
-rw-r--r--src/unittest/test_gameui.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/unittest/test_gameui.cpp b/src/unittest/test_gameui.cpp
index 56f44ed87..3c6f2a5a4 100644
--- a/src/unittest/test_gameui.cpp
+++ b/src/unittest/test_gameui.cpp
@@ -47,11 +47,14 @@ void TestGameUI::testInit()
gui.initFlags();
UASSERT(gui.getFlags().show_chat)
UASSERT(gui.getFlags().show_hud)
+
+ // @TODO verify if we can create non UI nulldevice to test this function
+ gui.init();
}
void TestGameUI::testFlagSetters()
{
- GameUI gui;
+ GameUI gui{};
gui.showMinimap(true);
UASSERT(gui.getFlags().show_minimap);