From 360afcf0e56b46dc13831eefbb5eb37054e581a2 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Mon, 31 Aug 2020 11:07:17 +0100 Subject: [PATCH] Minor change to Bresenham line unit test --- test/test_bresenham_line.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/test_bresenham_line.cpp b/test/test_bresenham_line.cpp index 2ad91abf..efdfefaf 100644 --- a/test/test_bresenham_line.cpp +++ b/test/test_bresenham_line.cpp @@ -33,22 +33,22 @@ SOFTWARE. #include #include +using Value = char; + +using Point = etl::coordinate_2d; + +std::ostream& operator << (std::ostream& os, const Point& point) +{ + os << "(" << int(point.x) << "," << int(point.y) << ")"; + return os; +} + namespace { - using Value = char; - - using Point = etl::coordinate_2d; - using BresenhamLine = etl::bresenham_line; SUITE(test_bresenham_line) { - std::ostream& operator << (std::ostream & os, const Point & point) - { - os << "(" << int(point.x) << "," << int(point.y) << ")"; - return os; - } - //************************************************************************* TEST(horizontal_line_left_right) {