init test framework

This commit is contained in:
2023-08-09 14:37:56 +02:00
parent 984c1891e1
commit a9f09960c4
3 changed files with 37 additions and 6 deletions
+22
View File
@@ -0,0 +1,22 @@
#include "courseCalculation.hpp"
#include <unity.h>
void setUp() {
}
void tearDown() {
}
void uselessTest() {
TEST_ASSERT_EQUAL(12, 12);
}
int main(int argc, char **argv) {
UNITY_BEGIN();
RUN_TEST(testCourseCalculation);
UNITY_END();
return 0;
}
+9
View File
@@ -0,0 +1,9 @@
#include "route.h"
#include <unity.h>
#include <iostream>
void testCourseCalculation(void) {
Point point;
std::cout << "Hello world from Test" << std::endl;
TEST_ASSERT_EQUAL_INT(20, 20);
}