From cf111426bdd3c521c2ff935de7a864d2dc59928f Mon Sep 17 00:00:00 2001 From: Alexander Klein Date: Wed, 9 Aug 2023 15:32:55 +0200 Subject: [PATCH] courseCalculationTest --- test/test_desktop/courseCalculation.hpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/test_desktop/courseCalculation.hpp b/test/test_desktop/courseCalculation.hpp index 969ba19..4950cc0 100644 --- a/test/test_desktop/courseCalculation.hpp +++ b/test/test_desktop/courseCalculation.hpp @@ -3,7 +3,13 @@ #include 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); }