aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-07 14:19:26 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-07 14:19:26 +0100
commitf3009ab8f0785a54d3fd83c0d758c8ebd901adda (patch)
tree6e9df9ef2311c28ee590c30e3a1f00018105bdd9 /src/test
parent90c6bf03e59fdec64f850310bcbff45ae86f69e3 (diff)
`make format`
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ECSTest.cpp1
-rw-r--r--src/test/ScriptECSTest.cpp5
-rw-r--r--src/test/ScriptSceneTest.cpp1
-rw-r--r--src/test/ScriptTest.cpp1
4 files changed, 2 insertions, 6 deletions
diff --git a/src/test/ECSTest.cpp b/src/test/ECSTest.cpp
index ed5341e..af2b7b0 100644
--- a/src/test/ECSTest.cpp
+++ b/src/test/ECSTest.cpp
@@ -466,4 +466,3 @@ TEST_F(ECSTest, ComponentsByTag) {
EXPECT_EQ(objects.size(), 3);
}
}
-
diff --git a/src/test/ScriptECSTest.cpp b/src/test/ScriptECSTest.cpp
index 4477e55..1ec33ba 100644
--- a/src/test/ScriptECSTest.cpp
+++ b/src/test/ScriptECSTest.cpp
@@ -4,8 +4,8 @@
#include <crepe/api/BehaviorScript.h>
#include <crepe/api/GameObject.h>
-#include <crepe/api/Script.h>
#include <crepe/api/Metadata.h>
+#include <crepe/api/Script.h>
#include <crepe/manager/ComponentManager.h>
#include <crepe/system/ScriptSystem.h>
@@ -32,8 +32,7 @@ TEST_F(ScriptECSTest, GetOwnComponent) {
TEST_F(ScriptECSTest, GetOwnComponents) {
const unsigned COUNT = 4;
- for (unsigned i = 0; i < COUNT; i++)
- entity.add_component<TestComponent>();
+ for (unsigned i = 0; i < COUNT; i++) entity.add_component<TestComponent>();
MyScript & script = this->script;
RefVector<TestComponent> components = script.get_components<TestComponent>();
diff --git a/src/test/ScriptSceneTest.cpp b/src/test/ScriptSceneTest.cpp
index 8e849c1..2568049 100644
--- a/src/test/ScriptSceneTest.cpp
+++ b/src/test/ScriptSceneTest.cpp
@@ -28,4 +28,3 @@ TEST_F(ScriptSceneTest, Default) {
script.set_next_scene(non_default_value);
EXPECT_EQ(non_default_value, scene_manager.next_scene);
}
-
diff --git a/src/test/ScriptTest.cpp b/src/test/ScriptTest.cpp
index b0b2546..acdae70 100644
--- a/src/test/ScriptTest.cpp
+++ b/src/test/ScriptTest.cpp
@@ -73,4 +73,3 @@ TEST_F(ScriptTest, UpdateInactive) {
system.update();
}
}
-