|
KiCad PCB EDA Suite
|
#include <algorithm>#include <cmath>#include <functional>#include <limits>#include <vector>#include <qa_utils/wx_utils/unit_test_utils.h>#include <board.h>#include <pcb_shape.h>#include <constraints/pcb_constraint.h>#include <constraints/board_constraint_adapter.h>#include <core/mirror.h>#include <geometry/eda_angle.h>#include <geometry/seg.h>#include "constraint_test_utils.h"Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (Sweep) | |
| BOOST_AUTO_TEST_CASE (FlipRestoresTangent) | |
| BOOST_AUTO_TEST_CASE (RotateRestoresParallel) | |
| BOOST_AUTO_TEST_CASE (NonFiniteStateIsNeverSatisfied) | |
| BOOST_AUTO_TEST_CASE (ContradictionLeavesFiniteGeometry) | |
| BOOST_AUTO_TEST_CASE (ContradictoryAuthoringLeavesTheBoard) | |
| BOOST_AUTO_TEST_CASE | ( | ContradictionLeavesFiniteGeometry | ) |
Definition at line 302 of file test_constraint_combinations.cpp.
References KI_TEST::addConstraint(), KI_TEST::addSegment(), BOOST_CHECK(), BOOST_REQUIRE(), BOARD_CONSTRAINT_ADAPTER::Build(), BOARD::Constraints(), locked, KI_TEST::MM, PARALLEL, PERPENDICULAR, BOARD_CONSTRAINT_ADAPTER::Snapshot(), BOARD_CONSTRAINT_ADAPTER::Solve(), and START.
| BOOST_AUTO_TEST_CASE | ( | ContradictoryAuthoringLeavesTheBoard | ) |
Definition at line 322 of file test_constraint_combinations.cpp.
References KI_TEST::addSegment(), BOOST_CHECK_EQUAL(), KI_TEST::MM, PARALLEL, and PERPENDICULAR.
| BOOST_AUTO_TEST_CASE | ( | FlipRestoresTangent | ) |
Definition at line 220 of file test_constraint_combinations.cpp.
References std::abs(), KI_TEST::addCircle(), KI_TEST::addSegment(), BOOST_CHECK(), DiagnoseBoardConstraints(), SEG::LineDistance(), KI_TEST::MM, ReSolveShapeClusters(), TANGENT, and TOP_BOTTOM.
| BOOST_AUTO_TEST_CASE | ( | NonFiniteStateIsNeverSatisfied | ) |
Definition at line 284 of file test_constraint_combinations.cpp.
References KI_TEST::addConstraint(), KI_TEST::addSegment(), BOOST_CHECK(), BOOST_REQUIRE(), BOARD_CONSTRAINT_ADAPTER::Build(), BOARD_CONSTRAINT_ADAPTER::CurrentRelationsSatisfied(), HORIZONTAL, KI_TEST::MM, BOARD_CONSTRAINT_ADAPTER::Restore(), PCB_CONSTRAINT::SetDriving(), and BOARD_CONSTRAINT_ADAPTER::Snapshot().
| BOOST_AUTO_TEST_CASE | ( | RotateRestoresParallel | ) |
Definition at line 250 of file test_constraint_combinations.cpp.
References std::abs(), KI_TEST::addSegment(), BOOST_CHECK(), dc, DEGREES_T, DiagnoseBoardConstraints(), VECTOR2< T >::EuclideanNorm(), KI_TEST::MM, PARALLEL, ReSolveShapeClusters(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | Sweep | ) |
Definition at line 60 of file test_constraint_combinations.cpp.
References KI_TEST::addCircle(), KI_TEST::addSegment(), BOOST_AUTO_TEST_CASE(), KI_TEST::MM, BOARD_ITEM::SetLocked(), and T.