Added tests
This commit is contained in:
17
test/test_dataAcquisition.c
Normal file
17
test/test_dataAcquisition.c
Normal file
@@ -0,0 +1,17 @@
|
||||
// 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;
|
||||
}
|
||||
Reference in New Issue
Block a user