Skip to content
Snippets Groups Projects
Commit cccb5bd8 authored by Severin Landwein's avatar Severin Landwein
Browse files

.

parent d8bb8693
No related branches found
No related tags found
No related merge requests found
Pipeline #159694 passed
#line 2 "UnitTest.ino" #line 2 "unittest.ino"
#include <AUnit.h> #include <AUnit.h>
#include <motor_driver_tb6612fng.h> #include <motor_driver_tb6612fng.h>
test(correct) {
int x = 1;
assertEqual(x, 1);
}
test(incorrect) {
int x = 1;
assertNotEqual(x, 1);
}
void setup() { void setup() {
delay(1000);
Serial.begin(9600); Serial.begin(9600);
} }
void loop() { void loop() {
aunit::TestRunner::run(); aunit::TestRunner::run();
} }
test (check_wrong_pins) {
assertEqual(0, 0);
assertEqual(1, 1);
assertEqual(2, 1);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment