From 3a6cd39615bf31b58d5fdc56272db0c59c71b3ed Mon Sep 17 00:00:00 2001 From: qicosmos Date: Tue, 8 Oct 2024 17:16:43 +0800 Subject: [PATCH] fix case --- test/test_reflection.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_reflection.cpp b/test/test_reflection.cpp index 01689743..a5ea54a7 100644 --- a/test/test_reflection.cpp +++ b/test/test_reflection.cpp @@ -435,11 +435,11 @@ TEST_CASE("test macros") { auto& var1 = get<"str"_ylts>(t); CHECK(var1 == "hello reflection"); - constexpr size_t idx = index_of(); - CHECK(idx == 2); + constexpr size_t i1 = index_of(); + CHECK(i1 == 2); - constexpr size_t idx2 = index_of(); - CHECK(idx2 == 4); + constexpr size_t i2 = index_of(); + CHECK(i2 == 4); #endif constexpr std::string_view name1 = name_of();