diff --git a/alib2std/test-src/extensions/VariantTest.cpp b/alib2std/test-src/extensions/VariantTest.cpp index 5d28736c61bbde86d9aa27d54fa7756d7a81b1a4..57a08e5d6d60aa22153a97065f19b46de6c293b9 100644 --- a/alib2std/test-src/extensions/VariantTest.cpp +++ b/alib2std/test-src/extensions/VariantTest.cpp @@ -38,6 +38,13 @@ void VariantTest::testVariant() { CPPUNIT_ASSERT( (d < e) == true ); CPPUNIT_ASSERT( (e < d) == false ); + std::swap ( d, e ); + + CPPUNIT_ASSERT( (d < e) == false ); + CPPUNIT_ASSERT( (e < d) == true ); + + std::swap ( d, e ); + CPPUNIT_ASSERT( (e == d) == false ); d = std::variant<int, std::string, VariantTest::test>(0);