diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-13 20:40:17 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-13 20:43:16 +0100 |
| commit | 9ee7bc711a5ec19802aafffc2b0d5312cb54f5e2 (patch) | |
| tree | c5b84cd15564e274bf374f47571c8cde96f44a8b /test/entity.cpp | |
| parent | 8577350b4b3eeec0f64626d815597eb805ddd9c7 (diff) | |
test stuff
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(); |
