Skip to content

Commit

Permalink
fix case
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Oct 8, 2024
1 parent e43f26f commit 3a6cd39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_reflection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,11 @@ TEST_CASE("test macros") {
auto& var1 = get<"str"_ylts>(t);
CHECK(var1 == "hello reflection");

constexpr size_t idx = index_of<simple2, "str"_ylts>();
CHECK(idx == 2);
constexpr size_t i1 = index_of<simple2, "str"_ylts>();
CHECK(i1 == 2);

constexpr size_t idx2 = index_of<simple2, "no_such"_ylts>();
CHECK(idx2 == 4);
constexpr size_t i2 = index_of<simple2, "no_such"_ylts>();
CHECK(i2 == 4);
#endif

constexpr std::string_view name1 = name_of<simple2, 2>();
Expand Down

0 comments on commit 3a6cd39

Please sign in to comment.