diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-18 08:59:51 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-18 09:00:00 +0100 |
commit | 4cf0ac3bcd8a2aa480a29ef43f2cca88c190d874 (patch) | |
tree | 249f93f044229dd010ae631a728fd068e202c6f6 /test | |
parent | ba000273212cbfc26fb7fe9459d6c3814ec88a2d (diff) |
pick a less awkward name for type's name
Diffstat (limited to 'test')
-rw-r--r-- | test/entity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/entity.cpp b/test/entity.cpp index 46c71c56..72b0a598 100644 --- a/test/entity.cpp +++ b/test/entity.cpp @@ -112,7 +112,7 @@ static void test_erasure() { static void test_metadata() { constexpr auto m = entity_metadata<TestAccessors>(); - fm_assert(m.class_name == typename_of<TestAccessors>); + fm_assert(m.class_name == name_of<TestAccessors>); fm_assert(m.class_name.contains("TestAccessors"_s)); const auto [foo, bar, baz] = m.accessors; const auto [foo2, bar2, baz2] = m.erased_accessors; @@ -128,7 +128,7 @@ static void test_type_name() { using namespace entities; struct foobar; - constexpr StringView name = typename_of<foobar>; + constexpr StringView name = name_of<foobar>; fm_assert(name.contains("foobar"_s)); } |