|
KiCad PCB EDA Suite
|
Tests ApplyConstraintImmediately (issue #2329 UI): creating a constraint solves its cluster on the spot, pinning the first member and moving the rest so the geometry satisfies the relation. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <algorithm>#include <board.h>#include <pcb_shape.h>#include <constraints/pcb_constraint.h>#include <constraints/board_constraint_adapter.h>#include "constraint_test_utils.h"Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (CoincidentSnapsSecondPointToFirst) | |
| BOOST_AUTO_TEST_CASE (SingleShapeFixedLengthStagesThePinnedShape) | |
| BOOST_AUTO_TEST_CASE (CircleFirstMemberPinsCenterAndSolves) | |
| BOOST_AUTO_TEST_CASE (FailedOrEmptyClusterLeavesGeometry) | |
Tests ApplyConstraintImmediately (issue #2329 UI): creating a constraint solves its cluster on the spot, pinning the first member and moving the rest so the geometry satisfies the relation.
Definition in file test_constraint_apply.cpp.
| BOOST_AUTO_TEST_CASE | ( | CircleFirstMemberPinsCenterAndSolves | ) |
Definition at line 88 of file test_constraint_apply.cpp.
References KI_TEST::addCircle(), KI_TEST::addConstraint(), ApplyConstraintImmediately(), BOOST_CHECK_EQUAL(), BOOST_TEST(), CONCENTRIC, PCB_SHAPE::GetCenter(), EDA_ITEM::m_Uuid, KI_TEST::MM, CONSTRAINT_DIAGNOSIS::solved, WHOLE, and VECTOR2< T >::x.
| BOOST_AUTO_TEST_CASE | ( | CoincidentSnapsSecondPointToFirst | ) |
Definition at line 44 of file test_constraint_apply.cpp.
References KI_TEST::addConstraint(), KI_TEST::addSegment(), ApplyConstraintImmediately(), BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_TEST(), COINCIDENT, END, EDA_SHAPE::GetEnd(), EDA_ITEM::m_Uuid, KI_TEST::MM, CONSTRAINT_DIAGNOSIS::solved, START, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | FailedOrEmptyClusterLeavesGeometry | ) |
Definition at line 110 of file test_constraint_apply.cpp.
References ApplyConstraintImmediately(), BOOST_TEST(), COINCIDENT, empty(), and CONSTRAINT_DIAGNOSIS::solved.
| BOOST_AUTO_TEST_CASE | ( | SingleShapeFixedLengthStagesThePinnedShape | ) |
Definition at line 67 of file test_constraint_apply.cpp.
References KI_TEST::addConstraint(), KI_TEST::addSegment(), ApplyConstraintImmediately(), BOOST_CHECK_EQUAL(), BOOST_TEST(), FIXED_LENGTH, EDA_SHAPE::GetEnd(), EDA_SHAPE::GetStart(), EDA_ITEM::m_Uuid, KI_TEST::MM, CONSTRAINT_DIAGNOSIS::solved, WHOLE, and VECTOR2< T >::x.