Skip to content

Commit

Permalink
tests(reflection): type equality
Browse files Browse the repository at this point in the history
  • Loading branch information
roby2014 committed Nov 19, 2023
1 parent ddfc8d4 commit 3f97f0e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions core/tests/reflection/type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,17 @@ TEST_CASE("reflection::Type")
CHECK(type.get<int>() == 42);
}

SUBCASE("equality")
{
auto& anotherType = type;
REQUIRE(anotherType == type);
}

SUBCASE("inequality")
{
auto& anotherType = Type::create("Bar");
REQUIRE(anotherType != type);
}

Type::destroy(type);
}

0 comments on commit 3f97f0e

Please sign in to comment.