forked from doudar/SmartSpin2k
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.cpp
56 lines (46 loc) · 1007 Bytes
/
test.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Copyright (C) 2020 Anthony Doud & Joel Baranick
* All rights reserved
*
* SPDX-License-Identifier: GPL-2.0-only
*/
#include "sdkconfig.h"
#include <unity.h>
#include "test.h"
void process() {
UNITY_BEGIN();
// FitnessMachineIndoorBike Tests
{
test_fitnessMachineIndoorBikeData test;
RUN_TEST(test.test_parses_heartrate);
RUN_TEST(test.test_parses_cadence);
RUN_TEST(test.test_parses_power);
}
// Cycle Power Tests
{
test_cyclePowerData test;
RUN_TEST(test.test_parses_power);
RUN_TEST(test.test_parses_cadence);
RUN_TEST(test.test_parses_heartrate);
RUN_TEST(test.test_parses_speed);
}
// ERG Mode
{
TestPowerBuffer testPowerBuffer;
RUN_TEST(testPowerBuffer.set__should_set_values__expect_values_added_to_correct_index);
}
UNITY_END();
}
#ifdef ARDUINO
#include <Arduino.h>
void setup() {
delay(2000);
process();
}
void loop() {}
#else
int main(int argc, char **argv) {
process();
return 0;
}
#endif // ARDUINO