17 lines
352 B
C
17 lines
352 B
C
// test/test_dataAcquisition.c
|
|
#include <assert.h>
|
|
#include <math.h>
|
|
#include "../include/dataAcquisition.h"
|
|
|
|
void test_initializeReadings() {
|
|
initializeReadings(5, 100);
|
|
assert(getSensorsNumber() == 5);
|
|
assert(getSlidingWindowSize() == 100);
|
|
}
|
|
|
|
|
|
int main() {
|
|
printf("Running tests...\n");
|
|
test_initializeReadings();
|
|
return 0;
|
|
} |