From cccb5bd8d5e7338d7339887bdb2a3fb8f31daea3 Mon Sep 17 00:00:00 2001
From: Severin Landwein <Severin.Landwein@th-koeln.de>
Date: Tue, 31 May 2022 13:27:02 +0200
Subject: [PATCH] .

---
 examples/unittest/unittest.ino | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/examples/unittest/unittest.ino b/examples/unittest/unittest.ino
index b73e6ca..09042ff 100644
--- a/examples/unittest/unittest.ino
+++ b/examples/unittest/unittest.ino
@@ -1,20 +1,24 @@
-#line 2 "UnitTest.ino"
+#line 2 "unittest.ino"
 
 #include <AUnit.h>
 #include <motor_driver_tb6612fng.h>
 
 
+test(correct) {
+  int x = 1;
+  assertEqual(x, 1);
+}
+
+test(incorrect) {
+  int x = 1;
+  assertNotEqual(x, 1);
+}
+
 void setup() {
+    delay(1000);
     Serial.begin(9600);
 }
 
 void loop() {
     aunit::TestRunner::run();
 }
-
-test (check_wrong_pins) {
-    assertEqual(0, 0);
-    assertEqual(1, 1);
-    assertEqual(2, 1);
-}
-
-- 
GitLab