aboutsummaryrefslogtreecommitdiff
path: root/src/unittest/test_keycode.cpp
diff options
context:
space:
mode:
authorElias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com>2020-11-04 16:44:42 +0100
committerGitHub <noreply@github.com>2020-11-04 16:44:42 +0100
commit5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (patch)
treec980d614fec4a5495798be3e79e033229062c3cd /src/unittest/test_keycode.cpp
parent28f6a79706b088c37268a59d90878220dc4ef9c7 (diff)
parent3af10766fd2b58b068e970266724d7eb10e9316b (diff)
downloaddragonfireclient-5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc.tar.xz
Merge branch 'master' into master
Diffstat (limited to 'src/unittest/test_keycode.cpp')
-rw-r--r--src/unittest/test_keycode.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/unittest/test_keycode.cpp b/src/unittest/test_keycode.cpp
index 3813af949..f9ba568e0 100644
--- a/src/unittest/test_keycode.cpp
+++ b/src/unittest/test_keycode.cpp
@@ -23,7 +23,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "exceptions.h"
#include "client/keycode.h"
-class TestKeycode : public TestBase {
+class TestKeycode : public TestBase
+{
public:
TestKeycode() { TestManager::registerTestModule(this); }
const char *getName() { return "TestKeycode"; }
@@ -114,7 +115,8 @@ void TestKeycode::testCompare()
UASSERT(!(KeyPress("5") == KeyPress("KEY_NUMPAD_5")));
// Matching char suffices
- // note: This is a real-world example, Irrlicht maps XK_equal to irr::KEY_PLUS on Linux
+ // note: This is a real-world example, Irrlicht maps XK_equal to irr::KEY_PLUS on
+ // Linux
irr::SEvent::SKeyInput in;
in.Key = irr::KEY_PLUS;
in.Char = L'=';