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)
 

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/2]

◆ BOOST_AUTO_TEST_CASE() [2/2]

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 46 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 103 of file test_eda_shape.cpp.

Referenced by BOOST_AUTO_TEST_CASE().