$OpenBSD: patch-stepcore_tests_contacts_cc,v 1.1.1.1 2013/04/24 19:06:28 zhuk Exp $
--- stepcore_tests/contacts.cc.orig	Tue Oct 11 05:47:23 2011
+++ stepcore_tests/contacts.cc	Tue Oct 11 06:00:36 2011
@@ -15,12 +15,12 @@
    along with StepCore; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
+#include <cmath>
+#include <stepcore/types.h>
 #include "maintest.h"
 
 #include <stepcore/collisionsolver.h>
 #include <stepcore/rigidbody.h>
-#include <stepcore/types.h>
-#include <cmath>
 
 class CollisionSolver: public StepCore::GJKCollisionSolver
 {
@@ -67,7 +67,7 @@ void MainTest::testCollisionDetection_data()
     QTest::newRow("vertex-edge-2")
             << vertexes << StepCore::Vector2d(0,0) << 0.0
             << vertexes << StepCore::Vector2d(3,0) << M_PI_4
-            << int(StepCore::Contact::Separated) << StepCore::Vector2d(2-M_SQRT2,0);
+            << int(StepCore::Contact::Separated) << StepCore::Vector2d(2-M_SQRT2,0.);
 
     QTest::newRow("edge-edge-1")
             << vertexes << StepCore::Vector2d(0,0) << 0.0
@@ -93,32 +93,32 @@ void MainTest::testCollisionDetection_data()
 
     QTest::newRow("contact-vertex-edge-2")
             << vertexes << StepCore::Vector2d(0,0) << 0.0
-            << vertexes << StepCore::Vector2d(1.001+M_SQRT2,0) << M_PI_4
-            << int(StepCore::Contact::Contacted) << StepCore::Vector2d(0.001,0)
+            << vertexes << StepCore::Vector2d(1.001+M_SQRT2,0.) << M_PI_4
+            << int(StepCore::Contact::Contacted) << StepCore::Vector2d(0.001,0.)
             << 1 << StepCore::Vector2d(1,0);
 
     QTest::newRow("contact-edge-edge-1")
             << vertexes << StepCore::Vector2d(0,0) << 0.0
-            << vertexes << StepCore::Vector2d(2.001,0) << 0.0
-            << int(StepCore::Contact::Contacted) << StepCore::Vector2d(0.001,0)
+            << vertexes << StepCore::Vector2d(2.001,0.) << 0.0
+            << int(StepCore::Contact::Contacted) << StepCore::Vector2d(0.001,0.)
             << 2 << StepCore::Vector2d(1,1) << StepCore::Vector2d(1,-1);
 
     QTest::newRow("contact-edge-edge-2")
             << vertexes << StepCore::Vector2d(0,0) << 0.0
-            << vertexes << StepCore::Vector2d(2.001,0) << 0.00001
-            << int(StepCore::Contact::Contacted) << StepCore::Vector2d(0.00099,0)
+            << vertexes << StepCore::Vector2d(2.001,0.) << 0.00001
+            << int(StepCore::Contact::Contacted) << StepCore::Vector2d(0.00099,0.)
             << 2 << StepCore::Vector2d(1.000990,0.999990) << StepCore::Vector2d(1,-1);
 
     QTest::newRow("contact-edge-edge-3")
             << vertexes << StepCore::Vector2d(0,0) << 0.0
-            << vertexes << StepCore::Vector2d(2.001,1) << 0.0
-            << int(StepCore::Contact::Contacted) << StepCore::Vector2d(0.001,0)
+            << vertexes << StepCore::Vector2d(2.001,1.) << 0.0
+            << int(StepCore::Contact::Contacted) << StepCore::Vector2d(0.001,0.)
             << 2 << StepCore::Vector2d(1,1) << StepCore::Vector2d(1,0);
 
     QTest::newRow("contact-edge-edge-4")
             << vertexes << StepCore::Vector2d(0,0) << 0.0
-            << vertexes << StepCore::Vector2d(2.001,1) << 0.00001
-            << int(StepCore::Contact::Contacted) << (StepCore::Vector2d(1,1e-5)*9.999999e-04).eval()
+            << vertexes << StepCore::Vector2d(2.001,1.) << 0.00001
+            << int(StepCore::Contact::Contacted) << (StepCore::Vector2d(1.,1e-5)*9.999999e-04).eval()
             << 2 << StepCore::Vector2d(1,1) << StepCore::Vector2d(1.001010,-0.000010);
 
     QTest::newRow("intersection-vertex-vertex-1")
