2018-03-04 12:57:15 -08:00
|
|
|
/*
|
|
|
|
* unit_test_framework.h
|
|
|
|
*
|
|
|
|
* Created on: Mar 4, 2018
|
|
|
|
* Author: Andrey Belomutskiy, (c) 2012-2018
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef UNIT_TEST_FRAMEWORK_H_
|
|
|
|
#define UNIT_TEST_FRAMEWORK_H_
|
|
|
|
|
2018-03-04 20:08:32 -08:00
|
|
|
#include "engine.h"
|
2019-01-08 19:10:54 -08:00
|
|
|
#include "gtest/gtest.h"
|
|
|
|
#include "gmock/gmock.h"
|
2018-03-04 12:57:15 -08:00
|
|
|
|
2019-01-14 15:20:20 -08:00
|
|
|
#define EPS1D 0.1
|
|
|
|
#define EPS2D 0.01
|
|
|
|
#define EPS3D 0.001
|
|
|
|
#define EPS4D 0.0001
|
|
|
|
#define EPS5D 0.00001
|
|
|
|
|
2018-03-04 19:00:32 -08:00
|
|
|
void assertEqualsM2(const char *msg, float expected, float actual, float EPS);
|
|
|
|
void assertEqualsM(const char *msg, float expected, float actual);
|
|
|
|
void assertEqualsLM(const char *msg, long expected, long actual);
|
|
|
|
void assertEqualsM4(const char *prefix, const char *msg, float expected, float actual);
|
|
|
|
void assertEqualsM5(const char *prefix, const char *message, float expected, float actual, float EPS);
|
|
|
|
void assertTrueM(const char *msg, float actual);
|
2018-03-04 12:57:15 -08:00
|
|
|
|
|
|
|
#endif /* UNIT_TEST_FRAMEWORK_H_ */
|