Arrange Test directory.
This commit is contained in:
18
test/TestUtility.h
Normal file
18
test/TestUtility.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef AURORA_TESTUTILITY_H
|
||||
#define AURORA_TESTUTILITY_H
|
||||
#include <cmath>
|
||||
|
||||
#define DISPLAY_MATRIX(Matrix)\
|
||||
printf("=====================================\r\n");\
|
||||
printf("%s:\r\n", #Matrix);\
|
||||
Matrix.printf();\
|
||||
printf("%s end================================\r\n", #Matrix);
|
||||
|
||||
double fourDecimalRound(double src){
|
||||
return round(src*10000.0)/10000.0;
|
||||
}
|
||||
|
||||
#define EXPECT_DOUBLE_AE(valueA,valueB)\
|
||||
EXPECT_DOUBLE_EQ(fourDecimalRound(valueA),fourDecimalRound(valueB));
|
||||
|
||||
#endif //AURORA_TESTUTILITY_H
|
||||
Reference in New Issue
Block a user