29#include <boost/test/unit_test.hpp>
42class COUNTING_GAL :
public GAL
45 COUNTING_GAL( GAL_DISPLAY_OPTIONS& aOptions ) : GAL( aOptions ) {}
47 void DrawLine(
const VECTOR2D& aStartPoint,
const VECTOR2D& aEndPoint )
override
52 unsigned m_lineCount = 0;
65 COUNTING_GAL gal( opts );
68 const double dashSize = 1000000;
72 BOOST_CHECK_GT( gal.m_lineCount, 1u );
73 BOOST_CHECK_LT( gal.m_lineCount, 200u );
81 COUNTING_GAL gal( opts );
85 const double dashSize = 1;
89 BOOST_CHECK_LE( gal.m_lineCount, 2u );
97 COUNTING_GAL gal( opts );
Abstract interface for drawing on a 2D-surface.
Utility functions for drawing compound items (i.e.
The Cairo implementation of the graphics abstraction layer.
void DrawDashedLine(GAL &aGal, const SEG &aSeg, double aDashSize)
Draw a dashed line.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_CASE(NormalLength)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_AUTO_TEST_SUITE_END()
VECTOR2< int32_t > VECTOR2I
VECTOR2< double > VECTOR2D