courseCalculationTest

This commit is contained in:
2023-08-09 15:32:55 +02:00
parent 57553b3cce
commit cf111426bd
+9 -3
View File
@@ -3,7 +3,13 @@
#include <iostream>
void testCourseCalculation(void) {
Point point;
std::cout << "Hello world from Test" << std::endl;
TEST_ASSERT_EQUAL_INT(20, 20);
// Point pointA(53.106725, 7.248069); // 45
// Point pointA(53.112188, 7.264404); // 90
Point pointA(53.112072, 7.266619); // -90
Point pointB(53.112123, 7.265354); //Home
int res = pointA.courseTo(pointB);
std::cout << "" << std::endl;
std::cout << "" << std::endl;
std::cout << "Return Value: " << res << std::endl;
TEST_ASSERT_LESS_OR_EQUAL(10, res);
}