migrating to googletest
This commit is contained in:
parent
4c9de98100
commit
05181cd837
|
@ -151,7 +151,7 @@ static void testPidAutoZigZagGrowingOsc() {
|
|||
|
||||
at.input = zigZagValue(mockTimeMs);
|
||||
bool result = at.Runtime(&logging);
|
||||
assertTrueM("should be true#2", result);
|
||||
ASSERT_TRUE(result) << "should be true#2";
|
||||
assertEqualsM("FAiled", FAILED, at.state);
|
||||
|
||||
assertEqualsM("output Growing", 0.0, at.output);
|
||||
|
@ -210,7 +210,7 @@ TEST(pidAutoTune, delayLine) {
|
|||
|
||||
if (result)
|
||||
printf("*** Converged! Got result: P=%f I=%f D=%f\r\n", at.GetKp(), at.GetKi(), at.GetKd());
|
||||
assertTrueM("should be true#5", result);
|
||||
ASSERT_TRUE(result) << "should be true#5";
|
||||
}
|
||||
|
||||
TEST(misc, testPidAuto) {
|
||||
|
|
|
@ -70,7 +70,7 @@ static void orderCallback(void *a) {
|
|||
long value = (long)a;
|
||||
|
||||
printf("value=%d prevValue=%d\r\n", value, prevValue);
|
||||
assertTrueM("orderCallback", value > prevValue);
|
||||
ASSERT_TRUE(value > prevValue) << "orderCallback";
|
||||
|
||||
prevValue = value;
|
||||
}
|
||||
|
|
|
@ -18,9 +18,7 @@ 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 assertEquals(float expected, float actual);
|
||||
void assertTrue(float actual);
|
||||
void assertTrueM(const char *msg, float actual);
|
||||
void assertFalse(float actual);
|
||||
void assertFalseM(const char *msg, float actual);
|
||||
|
||||
#endif /* UNIT_TEST_FRAMEWORK_H_ */
|
||||
|
|
Loading…
Reference in New Issue