From 58a76894041073880cf723b089eb48ab2dea73a7 Mon Sep 17 00:00:00 2001 From: "chappuis.daniel" Date: Sat, 4 Apr 2009 11:46:44 +0000 Subject: [PATCH] git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@119 92aac97c-a6ce-11dd-a772-7fcde58d38e6 --- .../testing/testing_mathematics/QuaternionTest.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sources/reactphysics3d/testing/testing_mathematics/QuaternionTest.h b/sources/reactphysics3d/testing/testing_mathematics/QuaternionTest.h index 72eba747..8d94353f 100644 --- a/sources/reactphysics3d/testing/testing_mathematics/QuaternionTest.h +++ b/sources/reactphysics3d/testing/testing_mathematics/QuaternionTest.h @@ -50,6 +50,7 @@ class QuaternionTest : public TestSuite::Test { testGetUnit(); testGetConjugate(); testGetInverse(); + testScalarProduct(); testOperatorAddition(); testOperatorSubstraction(); testOperatorMultiplicationWithConstant(); @@ -263,6 +264,12 @@ class QuaternionTest : public TestSuite::Test { } } + // Test the scalarProduct() method + void testScalarProduct() { + double result = quaternion1.scalarProduct(quaternion2); + test_(result == 110.0); + } + // Test operator+() void testOperatorAddition() { Quaternion result = quaternion1 + quaternion2;