diff --git a/tests/unittests/associations.cpp b/tests/unittests/associations.cpp index 55586a8e3..00a048f76 100644 --- a/tests/unittests/associations.cpp +++ b/tests/unittests/associations.cpp @@ -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); } }