mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
Explicit event initialization, local unit test execution
This commit is contained in:
parent
efc5a7111f
commit
fb33bee991
5 changed files with 62 additions and 15 deletions
|
@ -2,8 +2,8 @@
|
|||
#include "../test_lib.h"
|
||||
|
||||
#include "../../Software/src/devboard/config.h"
|
||||
#include "events.cpp"
|
||||
#include "timer.cpp"
|
||||
#include "../../Software/src/devboard/utils/events.cpp"
|
||||
#include "../../Software/src/devboard/utils/timer.cpp"
|
||||
|
||||
/* Local rest variables */
|
||||
bool elapsed = false;
|
||||
|
@ -20,6 +20,8 @@ TEST(init_events_test) {
|
|||
|
||||
for (uint8_t i = 0; i < EVENT_NOF_EVENTS; i++) {
|
||||
ASSERT_EQ(events.entries[i].occurences, 0);
|
||||
ASSERT_EQ(events.entries[i].data, 0);
|
||||
ASSERT_EQ(events.entries[i].timestamp, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue