Skip to content

Commit

Permalink
Add tests for inequality operator
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jul 17, 2024
1 parent c49d0af commit cbd67fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unittests/associations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ TEST_CASE("Association basics", "[associations]") {
// Mutable and immutable associations should be comparable
TestA assoc = mutAssoc;
REQUIRE(assoc == mutAssoc);

// operator!= is also defined and working
auto newAssoc = TestA{};
REQUIRE(otherAssoc != newAssoc);
REQUIRE(assoc != newAssoc);
}
}

Expand Down

0 comments on commit cbd67fe

Please sign in to comment.