WheelEvent class pimpling
[platform/core/uifw/dali-core.git] / automated-tests / src / dali / utc-Dali-Rect.cpp
index b5f50a6..6675e9d 100644 (file)
@@ -89,6 +89,37 @@ int UtcDaliRectCons04(void)
   END_TEST;
 }
 
+int UtcDaliRectMoveConstructor(void)
+{
+  TestApplication application;
+
+  Rect<float> rect(10.0f, 20.0f, 400.0f, 200.0f);
+
+  Rect<float> r2 = std::move( rect );
+
+  DALI_TEST_EQUALS(r2.x, 10.0f, 0.001, TEST_LOCATION);
+  DALI_TEST_EQUALS(r2.y, 20.0f, 0.001, TEST_LOCATION);
+  DALI_TEST_EQUALS(r2.width, 400.0f, 0.001, TEST_LOCATION);
+  DALI_TEST_EQUALS(r2.height, 200.0f, 0.001, TEST_LOCATION);
+  END_TEST;
+}
+
+int UtcDaliRectMoveAssignmentOperator(void)
+{
+  TestApplication application;
+
+  Rect<float> rect(10.0f, 20.0f, 400.0f, 200.0f);
+
+  Rect<float> r2;
+  r2 = std::move( rect );
+
+  DALI_TEST_EQUALS(r2.x, 10.0f, 0.001, TEST_LOCATION);
+  DALI_TEST_EQUALS(r2.y, 20.0f, 0.001, TEST_LOCATION);
+  DALI_TEST_EQUALS(r2.width, 400.0f, 0.001, TEST_LOCATION);
+  DALI_TEST_EQUALS(r2.height, 200.0f, 0.001, TEST_LOCATION);
+  END_TEST;
+}
+
 int UtcDaliRectAssignmentOperatorRect(void)
 {
   TestApplication application;