Files
Bachelorarbeit-Rover/test/test_desktop/courseCalculation.hpp
T
2023-08-09 15:32:55 +02:00

16 lines
486 B
C++

#include "route.h"
#include <unity.h>
#include <iostream>
void testCourseCalculation(void) {
// 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);
}