From 9ee7bc711a5ec19802aafffc2b0d5312cb54f5e2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 13 Nov 2022 20:40:17 +0100 Subject: test stuff --- test/entity.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'test/entity.cpp') 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; constexpr auto m_foo = Entity::Field::make("foo"_s, &Test::foo, &Test::foo); constexpr auto m_bar = Entity::Field::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(); -- cgit v1.2.3