|
@ -33,7 +33,7 @@ |
|
|
#include "CppUTest/TestOutput.h"
|
|
|
#include "CppUTest/TestOutput.h"
|
|
|
#include "CppUTest/TestTestingFixture.h"
|
|
|
#include "CppUTest/TestTestingFixture.h"
|
|
|
|
|
|
|
|
|
#include "mat.h"
|
|
|
|
|
|
|
|
|
#include "Mat.h"
|
|
|
|
|
|
|
|
|
#define TESTSIZE 4
|
|
|
#define TESTSIZE 4
|
|
|
int testMat [TESTSIZE][TESTSIZE]; |
|
|
int testMat [TESTSIZE][TESTSIZE]; |
|
@ -386,6 +386,7 @@ TEST(Matrix, matrixTransposeEye) |
|
|
DOUBLES_EQUAL(1.0f,a(3,3), tolerance); |
|
|
DOUBLES_EQUAL(1.0f,a(3,3), tolerance); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#if 0
|
|
|
/**
|
|
|
/**
|
|
|
* Test if the transpose function is working with an identity matrix |
|
|
* Test if the transpose function is working with an identity matrix |
|
|
* with 4 dimension should always be the same again |
|
|
* with 4 dimension should always be the same again |
|
@ -406,6 +407,7 @@ TEST(Matrix, vectorMultiply) |
|
|
CHECK_EQUAL(val,b(x)); |
|
|
CHECK_EQUAL(val,b(x)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
TEST(Matrix, scalarDivide) |
|
|
TEST(Matrix, scalarDivide) |
|
|
{ |
|
|
{ |
|
|