summaryrefslogtreecommitdiffhomepage
path: root/test/save.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-06 13:30:17 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-06 13:37:15 +0200
commit3534cd206bedef5ea75302d9abf879b15d1df89c (patch)
tree977f646ae1282ff7f539d2a524d1e354bfcf465d /test/save.cpp
parent4d6f747c4b8287e042363264a47265848ca2d92c (diff)
test: speed up compile time
Removes implicit includes to <windows.h> and <cr/StringView.h> from all files. Goes from 30 to 20 seconds.
Diffstat (limited to 'test/save.cpp')
-rw-r--r--test/save.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/save.cpp b/test/save.cpp
index a853bf82..cf4ccd44 100644
--- a/test/save.cpp
+++ b/test/save.cpp
@@ -15,7 +15,7 @@ namespace floormat {
namespace Path = Corrade::Utility::Path;
-chunk& test_app::make_test_chunk(world& w, chunk_coords_ ch)
+chunk& Test::make_test_chunk(world& w, chunk_coords_ ch)
{
chunk& c = w[ch];
c.mark_modified();
@@ -151,7 +151,7 @@ void run(StringView input, StringView tmp)
{
coord = {1, 1, 0};
w = world();
- auto& c = test_app::make_test_chunk(w, coord);
+ auto& c = Test::make_test_chunk(w, coord);
fm_assert(!c.empty(true));
}
w.serialize(tmp);
@@ -297,13 +297,13 @@ void test_save_objs()
} // namespace
-void test_app::test_save()
+void Test::test_save()
{
fm_assert(Path::exists(Path::join(loader.TEMP_PATH, "CMakeCache.txt")));
test_save_1();
}
-void test_app::test_saves()
+void Test::test_saves()
{
fm_assert(Path::exists(Path::join(loader.TEMP_PATH, "CMakeCache.txt")));
test_save_2();