From e17276da5a75f51102c90df633bffd810d141578 Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Mon, 19 Dec 2016 22:30:45 +0100
Subject: [PATCH] test nothrow_move_constructible of ObjectsSet

---
 alib2common/test-src/container/ContainerTest.cpp | 6 ++++++
 alib2common/test-src/container/ContainerTest.h   | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/alib2common/test-src/container/ContainerTest.cpp b/alib2common/test-src/container/ContainerTest.cpp
index af8fbd1dd4..9b13ac1f24 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 c7d49f3f31..b9fb3b9121 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_
-- 
GitLab