mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 00:46:03 +08:00
Minor change to Bresenham line unit test
This commit is contained in:
parent
0a7148a796
commit
360afcf0e5
@ -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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user