From b9f1f236d1173d5822df7be82600ee6e933a37d3 Mon Sep 17 00:00:00 2001
From: EndrII <EndrIIMail@gmail.com>
Date: Fri, 8 Oct 2021 22:16:33 +0300
Subject: [PATCH] fix test (ref #110)

---
 tests/units/groupobjecttest.cpp | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/tests/units/groupobjecttest.cpp b/tests/units/groupobjecttest.cpp
index cf60629..806eb12 100644
--- a/tests/units/groupobjecttest.cpp
+++ b/tests/units/groupobjecttest.cpp
@@ -73,14 +73,16 @@ void GroupObjectTest::testBehavior() const {
     QVector3D localPosition = {10,0,0};
     QQuaternion localRotation = QQuaternion::fromEulerAngles(0,5,0);
 
-    object.updatePosition(item.guiId(), localPosition);
     object.updateRotation(item.guiId(), localRotation);
+    object.render(0);
+    // after invoke the render function all positions and rotations should be changed
+    QVERIFY(item.rotation() == (object.rotation() * localRotation));
+
+    object.updatePosition(item.guiId(), localPosition);
+    object.setRotation(QQuaternion::fromEulerAngles(0,0,0));
 
     object.render(0);
-
-    // after invoke the render function all positions and rotations should be changed
     QVERIFY(item.position() == (object.position() + localPosition));
-    QVERIFY(item.rotation() == (object.rotation() * localRotation));
 
 
     object.remove(&item);