KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_snap_resolver.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <kiid.h>
#include <snap/snap_resolver.h>
#include <algorithm>
#include <chrono>
#include <iomanip>
#include <sstream>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (StableIdentityUsesTypedKindAndTarget)
 
 BOOST_AUTO_TEST_CASE (PointIdentityPreservesCoordinateOrder)
 
 BOOST_AUTO_TEST_CASE (IntersectionIdentityIsSourceOrderIndependent)
 
 BOOST_AUTO_TEST_CASE (CompositeIdentityIsOrderIndependentWithoutXorCancellation)
 
 BOOST_AUTO_TEST_CASE (IdentityConstructionHasStableGoldenBytes)
 
 BOOST_AUTO_TEST_CASE (AuthoredRelationWinsEveryTransientTier)
 
 BOOST_AUTO_TEST_CASE (AngleRejectsIncompatibleObjectWithoutRelaxing)
 
 BOOST_AUTO_TEST_CASE (CompatibleObjectAxesCompose)
 
 BOOST_AUTO_TEST_CASE (ConflictingGridAxisLeavesCompatibleAxisAccepted)
 
 BOOST_AUTO_TEST_CASE (NearParallelIntersectionOutsideCoordinateRangeIsInfeasible)
 
 BOOST_AUTO_TEST_CASE (NearParallelIntersectionInsideCoordinateRangeComposes)
 
 BOOST_AUTO_TEST_CASE (StableIdentityBreaksExactRankTie)
 
 BOOST_AUTO_TEST_CASE (FixedCursorPathIsIndependentOfCandidateStorageOrder)
 
 BOOST_AUTO_TEST_CASE (ReferenceAffinityOutranksDistance)
 
 BOOST_AUTO_TEST_CASE (InfeasiblePreferredReferenceFallsBack)
 
 BOOST_AUTO_TEST_CASE (FullyConstrainedAnchorSuppressesRedundantLayoutFeedback)
 
 BOOST_AUTO_TEST_CASE (AdjacentAngleBranchesRemainAlternatives)
 
 BOOST_AUTO_TEST_CASE (JointFeasibilityRunsFromCommonBaseForEveryTrial)
 
 BOOST_AUTO_TEST_CASE (MandatoryPrefixCompletesAfterDeadline)
 
 BOOST_AUTO_TEST_CASE (RetainedAngleBranchUsesFivePixelHysteresis)
 
 BOOST_AUTO_TEST_CASE (StickyCandidateHoldsWithinHysteresis)
 
 BOOST_AUTO_TEST_CASE (StickyCandidateReleasesBeyondHysteresis)
 
 BOOST_AUTO_TEST_CASE (TraceCallbackReportsRankingTrialsAndResult)
 
 BOOST_AUTO_TEST_CASE (IntrinsicObjectOutranksIncompatibleRetainedTarget)
 
 BOOST_AUTO_TEST_CASE (RunningTrialFinishesButNoFurtherTrialStartsAfterOverrun)
 
 BOOST_AUTO_TEST_CASE (GridAxesApplyAfterRejectedObjectExhaustsBudget)
 
 BOOST_AUTO_TEST_CASE (AcceptedCandidateForwardsAllGuides)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/27]

◆ BOOST_AUTO_TEST_CASE() [2/27]

BOOST_AUTO_TEST_CASE ( AdjacentAngleBranchesRemainAlternatives )

◆ BOOST_AUTO_TEST_CASE() [3/27]

◆ BOOST_AUTO_TEST_CASE() [4/27]

◆ BOOST_AUTO_TEST_CASE() [5/27]

◆ BOOST_AUTO_TEST_CASE() [6/27]

BOOST_AUTO_TEST_CASE ( CompositeIdentityIsOrderIndependentWithoutXorCancellation )

◆ BOOST_AUTO_TEST_CASE() [7/27]

◆ BOOST_AUTO_TEST_CASE() [8/27]

BOOST_AUTO_TEST_CASE ( FixedCursorPathIsIndependentOfCandidateStorageOrder )

◆ BOOST_AUTO_TEST_CASE() [9/27]

◆ BOOST_AUTO_TEST_CASE() [10/27]

◆ BOOST_AUTO_TEST_CASE() [11/27]

BOOST_AUTO_TEST_CASE ( IdentityConstructionHasStableGoldenBytes )

◆ BOOST_AUTO_TEST_CASE() [12/27]

◆ BOOST_AUTO_TEST_CASE() [13/27]

BOOST_AUTO_TEST_CASE ( IntersectionIdentityIsSourceOrderIndependent )

◆ BOOST_AUTO_TEST_CASE() [14/27]

◆ BOOST_AUTO_TEST_CASE() [15/27]

◆ BOOST_AUTO_TEST_CASE() [16/27]

◆ BOOST_AUTO_TEST_CASE() [17/27]

BOOST_AUTO_TEST_CASE ( NearParallelIntersectionInsideCoordinateRangeComposes )

◆ BOOST_AUTO_TEST_CASE() [18/27]

BOOST_AUTO_TEST_CASE ( NearParallelIntersectionOutsideCoordinateRangeIsInfeasible )

◆ BOOST_AUTO_TEST_CASE() [19/27]

BOOST_AUTO_TEST_CASE ( PointIdentityPreservesCoordinateOrder )

Definition at line 101 of file test_snap_resolver.cpp.

References BOOST_CHECK(), CONSTRUCTION, and MakePointSnapId().

◆ BOOST_AUTO_TEST_CASE() [20/27]

◆ BOOST_AUTO_TEST_CASE() [21/27]

◆ BOOST_AUTO_TEST_CASE() [22/27]

◆ BOOST_AUTO_TEST_CASE() [23/27]

◆ BOOST_AUTO_TEST_CASE() [24/27]

BOOST_AUTO_TEST_CASE ( StableIdentityUsesTypedKindAndTarget )

◆ BOOST_AUTO_TEST_CASE() [25/27]

◆ BOOST_AUTO_TEST_CASE() [26/27]

◆ BOOST_AUTO_TEST_CASE() [27/27]