diff options
Diffstat (limited to 'test/entity.cpp')
| -rw-r--r-- | test/entity.cpp | 12 |
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(); |
