Skip to content

Commit

Permalink
chore: use string literal on test-reflect
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtsHsu committed Feb 20, 2024
1 parent a03e5cd commit 03c003c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/test-reflect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ int main() {
static_assert(std::same_as<reflect::type_of<MyStruct, 9>,
std::reference_wrapper<int>>);

static_assert(reflect::name_of<MyStruct, 0> == "number"_cs);
static_assert(reflect::name_of<MyStruct, 1> == "decimal"_cs);
static_assert(reflect::name_of<MyStruct, 2> == "name"_cs);
static_assert(reflect::name_of<MyStruct, 3> == "array"_cs);
static_assert(reflect::name_of<MyStruct, 4> == "pointer"_cs);
static_assert(reflect::name_of<MyStruct, 5> == "func_pointer"_cs);
static_assert(reflect::name_of<MyStruct, 6> == "member_pointer"_cs);
static_assert(reflect::name_of<MyStruct, 7> == "member_func_point"_cs);
static_assert(reflect::name_of<MyStruct, 8> == "uncopyable"_cs);
static_assert(reflect::name_of<MyStruct, 9> == "ref_wrapper"_cs);
static_assert(reflect::name_of<MyStruct, 0> == "number");
static_assert(reflect::name_of<MyStruct, 1> == "decimal");
static_assert(reflect::name_of<MyStruct, 2> == "name");
static_assert(reflect::name_of<MyStruct, 3> == "array");
static_assert(reflect::name_of<MyStruct, 4> == "pointer");
static_assert(reflect::name_of<MyStruct, 5> == "func_pointer");
static_assert(reflect::name_of<MyStruct, 6> == "member_pointer");
static_assert(reflect::name_of<MyStruct, 7> == "member_func_point");
static_assert(reflect::name_of<MyStruct, 8> == "uncopyable");
static_assert(reflect::name_of<MyStruct, 9> == "ref_wrapper");

std::cout << __FILE__ ": all tests passed." << std::endl;

Expand Down

0 comments on commit 03c003c

Please sign in to comment.