summaryrefslogtreecommitdiffhomepage
path: root/test/entity.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-13 20:40:17 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-13 20:43:16 +0100
commit9ee7bc711a5ec19802aafffc2b0d5312cb54f5e2 (patch)
treec5b84cd15564e274bf374f47571c8cde96f44a8b /test/entity.cpp
parent8577350b4b3eeec0f64626d815597eb805ddd9c7 (diff)
test stuff
Diffstat (limited to 'test/entity.cpp')
-rw-r--r--test/entity.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/entity.cpp b/test/entity.cpp
index 6789a241..50d5e34b 100644
--- a/test/entity.cpp
+++ b/test/entity.cpp
@@ -2,7 +2,9 @@
#include "compat/assert.hpp"
#include "src/entity.hpp"
-struct Test {
+namespace {
+
+struct TestAccessors {
int foo = 111;
int bar() const { return _bar; }
void set_bar(int value) { _bar = value; }
@@ -11,12 +13,15 @@ private:
int _bar = 222;
};
+} // namespace
+
namespace floormat {
using namespace floormat::entities;
static void test_accessors()
{
+ using Test = ::TestAccessors;
using Entity = entity<Test>;
constexpr auto m_foo = Entity::Field<int>::make("foo"_s, &Test::foo, &Test::foo);
constexpr auto m_bar = Entity::Field<int>::make("bar"_s, &Test::bar, &Test::set_bar);
@@ -40,6 +45,11 @@ static void test_accessors()
}
}
+static void test_()
+{
+
+}
+
void test_app::test_entity()
{
test_accessors();