summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-13 18:08:44 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-13 20:43:16 +0100
commite45bf04c0f86ab08d5e811efb3a3d0b508f449c3 (patch)
tree7045c6efd07f670665fade25f55fc84ed6848eb3 /test
parent62172828e4114437b88456dd12d90066fde458df (diff)
rename test app
Diffstat (limited to 'test')
-rw-r--r--test/app.hpp8
-rw-r--r--test/const-math.cpp2
-rw-r--r--test/json.cpp2
-rw-r--r--test/main.cpp10
-rw-r--r--test/serializer.cpp2
-rw-r--r--test/tile-iter.cpp2
6 files changed, 14 insertions, 12 deletions
diff --git a/test/app.hpp b/test/app.hpp
index 26a0e41a..89753ead 100644
--- a/test/app.hpp
+++ b/test/app.hpp
@@ -13,14 +13,16 @@
#endif
namespace floormat {
-struct floormat final : private FM_APPLICATION
+struct test_app final : private FM_APPLICATION
{
- explicit floormat(const Arguments& arguments);
- ~floormat();
+ using Application = FM_APPLICATION;
+ explicit test_app(const Arguments& arguments);
+ ~test_app();
int exec() override;
static bool test_json();
static bool test_tile_iter();
static bool test_const_math();
static bool test_serializer();
+ static bool test_entity();
};
} // namespace floormat
diff --git a/test/const-math.cpp b/test/const-math.cpp
index 1ea4c2f0..a9c710fe 100644
--- a/test/const-math.cpp
+++ b/test/const-math.cpp
@@ -61,7 +61,7 @@ static constexpr void* compile_tests()
namespace floormat {
-bool floormat::test_const_math()
+bool test_app::test_const_math()
{
static_assert(compile_tests() == nullptr);
return true;
diff --git a/test/json.cpp b/test/json.cpp
index b5caf145..3b099e47 100644
--- a/test/json.cpp
+++ b/test/json.cpp
@@ -32,7 +32,7 @@ static chunk make_test_chunk()
return c;
}
-bool floormat::test_json() // NOLINT(readability-convert-member-functions-to-static)
+bool test_app::test_json() // NOLINT(readability-convert-member-functions-to-static)
{
constexpr auto output_dir = "../test/."_s;
{
diff --git a/test/main.cpp b/test/main.cpp
index 1dc91e9e..5483160f 100644
--- a/test/main.cpp
+++ b/test/main.cpp
@@ -3,20 +3,20 @@
namespace floormat {
-floormat::floormat(const Arguments& arguments):
- FM_APPLICATION {
+test_app::test_app(const Arguments& arguments):
+ Application {
arguments,
Configuration{}
}
{
}
-floormat::~floormat()
+test_app::~test_app()
{
loader_::destroy();
}
-int floormat::exec()
+int test_app::exec()
{
bool ret = true;
ret &= test_json();
@@ -30,6 +30,6 @@ int floormat::exec()
int main(int argc, char** argv)
{
- floormat::floormat application{{argc, argv}};
+ floormat::test_app application{{argc, argv}};
return application.exec();
}
diff --git a/test/serializer.cpp b/test/serializer.cpp
index a8312164..2e24cd0f 100644
--- a/test/serializer.cpp
+++ b/test/serializer.cpp
@@ -51,7 +51,7 @@ static bool test_serializer1()
return ret;
}
-bool floormat::test_serializer()
+bool test_app::test_serializer()
{
bool ret = true;
ret &= test_serializer1();
diff --git a/test/tile-iter.cpp b/test/tile-iter.cpp
index 1142969e..38fad206 100644
--- a/test/tile-iter.cpp
+++ b/test/tile-iter.cpp
@@ -8,7 +8,7 @@ static inline bool always_false()
return ret;
}
-bool floormat::test_tile_iter() // NOLINT(readability-function-size)
+bool test_app::test_tile_iter() // NOLINT(readability-function-size)
{
if (always_false())
{