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

Tests reference-value propagation (issue #2329): a non-driving (reference) constraint only measures its quantity, so after a solve its stored value must track the geometry, while a driving constraint's value is an input the solve never overwrites. More...

#include <qa_utils/wx_utils/unit_test_utils.h>
#include <algorithm>
#include <cmath>
#include <vector>
#include <board.h>
#include <pcb_shape.h>
#include <geometry/seg.h>
#include <constraints/pcb_constraint.h>
#include <constraints/board_constraint_adapter.h>
#include <constraints/constraint_builder.h>
#include "constraint_test_utils.h"

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (ReferenceLengthTracksGeometry)
 
 BOOST_AUTO_TEST_CASE (ReferenceTwoPointLengthTracksGeometry)
 
 BOOST_AUTO_TEST_CASE (DrivingLengthValueNotOverwritten)
 
 BOOST_AUTO_TEST_CASE (ReferenceRadiusTracksGeometry)
 
 BOOST_AUTO_TEST_CASE (ReferenceValueUnchangedIsNotStaged)
 
 BOOST_AUTO_TEST_CASE (DrivingObtuseCornerSurvivesSolve)
 
 BOOST_AUTO_TEST_CASE (DrivingChainedCornerCrossesNinety)
 
 BOOST_AUTO_TEST_CASE (ReferenceAngleTracksGeometry)
 

Detailed Description

Tests reference-value propagation (issue #2329): a non-driving (reference) constraint only measures its quantity, so after a solve its stored value must track the geometry, while a driving constraint's value is an input the solve never overwrites.

Definition in file test_constraint_reference.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/8]

BOOST_AUTO_TEST_CASE ( DrivingChainedCornerCrossesNinety )

◆ BOOST_AUTO_TEST_CASE() [2/8]

◆ BOOST_AUTO_TEST_CASE() [3/8]

BOOST_AUTO_TEST_CASE ( DrivingObtuseCornerSurvivesSolve )

◆ BOOST_AUTO_TEST_CASE() [4/8]

◆ BOOST_AUTO_TEST_CASE() [5/8]

◆ BOOST_AUTO_TEST_CASE() [6/8]

◆ BOOST_AUTO_TEST_CASE() [7/8]

BOOST_AUTO_TEST_CASE ( ReferenceTwoPointLengthTracksGeometry )

◆ BOOST_AUTO_TEST_CASE() [8/8]

BOOST_AUTO_TEST_CASE ( ReferenceValueUnchangedIsNotStaged )