diff --git a/alib2common/test-src/container/ContainerTest.cpp b/alib2common/test-src/container/ContainerTest.cpp index af8fbd1dd4788024a31d1b9ad0dd33b8411d42d0..9b13ac1f24088ba8df768cec8aab2c37eb68df82 100644 --- a/alib2common/test-src/container/ContainerTest.cpp +++ b/alib2common/test-src/container/ContainerTest.cpp @@ -13,6 +13,8 @@ #include "factory/XmlDataFactory.hpp" +#include <type_traits> + #define CPPUNIT_IMPLY( x, y ) CPPUNIT_ASSERT ( !( x ) || ( y ) ) #define CPPUNIT_EXCLUSIVE_OR( x, y ) CPPUNIT_ASSERT ( ( !( x ) && ( y ) ) || ( ( x ) && !( y ) ) ) @@ -95,3 +97,7 @@ void ContainerTest::testTreeParsing ( ) { CPPUNIT_ASSERT ( t == t2 ); } } + +void ContainerTest::testProperties ( ) { + CPPUNIT_ASSERT ( std::is_nothrow_move_constructible < container::ObjectsSet < alib::Object > >::value ); +} diff --git a/alib2common/test-src/container/ContainerTest.h b/alib2common/test-src/container/ContainerTest.h index c7d49f3f31fa9057386453c08fa1d726644adc38..b9fb3b9121a2a92722947e059c7d6e7d7772904c 100644 --- a/alib2common/test-src/container/ContainerTest.h +++ b/alib2common/test-src/container/ContainerTest.h @@ -8,6 +8,7 @@ class ContainerTest : public CppUnit::TestFixture { CPPUNIT_TEST ( testXMLParser ); CPPUNIT_TEST ( testVariantParsing ); CPPUNIT_TEST ( testTreeParsing ); + CPPUNIT_TEST ( testProperties ); CPPUNIT_TEST_SUITE_END ( ); public: @@ -17,6 +18,7 @@ public: void testXMLParser ( ); void testVariantParsing ( ); void testTreeParsing ( ); + void testProperties ( ); }; #endif // CONTAINER_TEST_H_