aboutsummaryrefslogtreecommitdiff
path: root/src/test/LoopTimerTest.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-07 15:32:47 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-07 15:32:47 +0100
commit24c9a9ab277897a7191d4e99213c2ab9f5d4ecd8 (patch)
tree0e5f9dc8be0592431b52149db51337ccf3bc2e7f /src/test/LoopTimerTest.cpp
parent0f2451f4d48c78426c2663501e6cdd6871f1e94a (diff)
make format
Diffstat (limited to 'src/test/LoopTimerTest.cpp')
-rw-r--r--src/test/LoopTimerTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/LoopTimerTest.cpp b/src/test/LoopTimerTest.cpp
index 09b4e00..c6655d9 100644
--- a/src/test/LoopTimerTest.cpp
+++ b/src/test/LoopTimerTest.cpp
@@ -1,6 +1,6 @@
#include <chrono>
-#include <thread>
#include <gtest/gtest.h>
+#include <thread>
#define private public
#define protected public
#include <crepe/manager/LoopTimerManager.h>
@@ -26,7 +26,7 @@ TEST_F(LoopTimerTest, EnforcesTargetFrameRate) {
auto elapsed_ms = duration_cast<milliseconds>(elapsed_time).count();
// For 60 FPS, the target frame time is around 16.67ms
- ASSERT_NEAR(elapsed_ms,16.7,1);
+ ASSERT_NEAR(elapsed_ms, 16.7, 1);
}
TEST_F(LoopTimerTest, SetTargetFps) {
// Set the target FPS to 120