KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_eda_shape.cpp File Reference

Go to the source code of this file.

Classes

class  EDA_SHAPE_MOCK
 
struct  SET_ANGLE_END_CASE
 
struct  SET_ARC_GEOMETRY_CASE
 

Functions

 BOOST_AUTO_TEST_CASE (SetAngleAndEnd)
 
 BOOST_AUTO_TEST_CASE (SetArcGeometry)
 
 BOOST_AUTO_TEST_CASE (PolygonBehaviorSurvivesAssignment)
 Verify that EDA_POLYGON_POINT_EDIT_BEHAVIOR survives EDA_SHAPE assignment.
 

Variables

static const std::vector< SET_ANGLE_END_CASEset_angle_end_cases
 
static const std::vector< SET_ARC_GEOMETRY_CASEset_arc_geometry_cases
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( PolygonBehaviorSurvivesAssignment )

◆ BOOST_AUTO_TEST_CASE() [2/3]

◆ BOOST_AUTO_TEST_CASE() [3/3]

Variable Documentation

◆ set_angle_end_cases

const std::vector<SET_ANGLE_END_CASE> set_angle_end_cases
static
Initial value:
=
{
{
"Issue 13626: clockwise semicircle",
{-428880000, 117229160 },
{-430060565, 113472820 },
180.0,
{-431241130, 109716480 },
false
},
{
"Issue 13626: anticlockwise arc",
{ -431241130, 109716480 },
{ -434923630, 112954230 },
-138.46654568595355,
{ -439827050, 112936200 },
true
}
}

Definition at line 47 of file test_eda_shape.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ set_arc_geometry_cases

const std::vector<SET_ARC_GEOMETRY_CASE> set_arc_geometry_cases
static
Initial value:
= {
{
"Issue 15694: clockwise arc",
{ 10000000, 0 },
{ 0, 10000000 },
{ -10000000, 0 },
{ 0, 0 },
10000000,
false,
{ -10000000, 0 },
180.0,
},
{
"Issue 15694: anticlockwise arc",
{ -10000000, 0 },
{ 0, 10000000 },
{ 10000000, 0 },
{ 0, 0 },
10000000,
true,
{ 10000000, 0 },
180.0,
},
}

Definition at line 104 of file test_eda_shape.cpp.

Referenced by BOOST_AUTO_TEST_CASE().