summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-07-12 20:19:25 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-07-14 13:04:41 +0200
commiteb469ff58365517515d73827e70a9519436b5858 (patch)
tree671a6af202011460ece04359e62ce6b2f87be61f /test
parent679224153849deb04f294f00f19b79102ef1a2d3 (diff)
w
Diffstat (limited to 'test')
-rw-r--r--test/app.cpp1
-rw-r--r--test/app.hpp1
-rw-r--r--test/bptr.cpp2
-rw-r--r--test/handle.cpp23
4 files changed, 26 insertions, 1 deletions
diff --git a/test/app.cpp b/test/app.cpp
index 6ace3ca5..47b019c7 100644
--- a/test/app.cpp
+++ b/test/app.cpp
@@ -62,6 +62,7 @@ int App::exec()
FM_TEST(test_astar_pool),
FM_TEST(test_coords),
FM_TEST(test_hole),
+ FM_TEST(test_handle),
FM_TEST(test_bptr),
FM_TEST(test_iptr),
FM_TEST(test_entity),
diff --git a/test/app.hpp b/test/app.hpp
index b1995e77..d32b9759 100644
--- a/test/app.hpp
+++ b/test/app.hpp
@@ -23,6 +23,7 @@ void test_coords();
void test_critter();
void test_dijkstra();
void test_entity();
+void test_handle();
void test_hash();
void test_hole();
void test_iptr();
diff --git a/test/bptr.cpp b/test/bptr.cpp
index b254f295..303bf027 100644
--- a/test/bptr.cpp
+++ b/test/bptr.cpp
@@ -48,7 +48,7 @@ struct A
{
int val, serial;
explicit A(int val) : val{val}, serial{++A_total} { ++A_alive; }
- ~A() noexcept { --A_alive; fm_assert(A_alive >= 0); }
+ ~A() noexcept override { --A_alive; fm_assert(A_alive >= 0); }
fm_DECLARE_DELETED_COPY_MOVE_ASSIGNMENTS(A);
};
diff --git a/test/handle.cpp b/test/handle.cpp
new file mode 100644
index 00000000..79416c2c
--- /dev/null
+++ b/test/handle.cpp
@@ -0,0 +1,23 @@
+#include "app.hpp"
+#include "src/handle.inl"
+#include "src/handle-page.inl"
+//#include "src/handle-pool.inl"
+
+namespace floormat::Test {
+
+namespace {
+
+void test1()
+{
+
+}
+
+} // namespace
+
+
+void test_handle()
+{
+ test1();
+}
+
+} // namespace floormat::Test