Minor change to Bresenham line unit test

This commit is contained in:
John Wellbelove 2020-08-31 11:07:17 +01:00
parent 0a7148a796
commit 360afcf0e5

View File

@ -33,22 +33,22 @@ SOFTWARE.
#include <vector>
#include <ostream>
using Value = char;
using Point = etl::coordinate_2d<Value>;
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<Value>;
using BresenhamLine = etl::bresenham_line<Value>;
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)
{