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 (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 (AcceptedCandidateForwardsAllGuides)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/24]

BOOST_AUTO_TEST_CASE ( AcceptedCandidateForwardsAllGuides )

◆ BOOST_AUTO_TEST_CASE() [2/24]

BOOST_AUTO_TEST_CASE ( AdjacentAngleBranchesRemainAlternatives )

◆ BOOST_AUTO_TEST_CASE() [3/24]

◆ BOOST_AUTO_TEST_CASE() [4/24]

BOOST_AUTO_TEST_CASE ( AuthoredRelationWinsEveryTransientTier )

◆ BOOST_AUTO_TEST_CASE() [5/24]

BOOST_AUTO_TEST_CASE ( CompatibleObjectAxesCompose )

◆ BOOST_AUTO_TEST_CASE() [6/24]

BOOST_AUTO_TEST_CASE ( CompositeIdentityIsOrderIndependentWithoutXorCancellation )

◆ BOOST_AUTO_TEST_CASE() [7/24]

BOOST_AUTO_TEST_CASE ( ConflictingGridAxisLeavesCompatibleAxisAccepted )

◆ BOOST_AUTO_TEST_CASE() [8/24]

BOOST_AUTO_TEST_CASE ( FixedCursorPathIsIndependentOfCandidateStorageOrder )

◆ BOOST_AUTO_TEST_CASE() [9/24]

BOOST_AUTO_TEST_CASE ( FullyConstrainedAnchorSuppressesRedundantLayoutFeedback )

◆ BOOST_AUTO_TEST_CASE() [10/24]

BOOST_AUTO_TEST_CASE ( IdentityConstructionHasStableGoldenBytes )

◆ BOOST_AUTO_TEST_CASE() [11/24]

BOOST_AUTO_TEST_CASE ( InfeasiblePreferredReferenceFallsBack )

◆ BOOST_AUTO_TEST_CASE() [12/24]

BOOST_AUTO_TEST_CASE ( IntersectionIdentityIsSourceOrderIndependent )

Definition at line 108 of file test_snap_resolver.cpp.

References KIID::AsBytes(), ITEM_GEOMETRY, and MakeIntersectionSnapId().

◆ BOOST_AUTO_TEST_CASE() [13/24]

BOOST_AUTO_TEST_CASE ( IntrinsicObjectOutranksIncompatibleRetainedTarget )

◆ BOOST_AUTO_TEST_CASE() [14/24]

◆ BOOST_AUTO_TEST_CASE() [15/24]

◆ BOOST_AUTO_TEST_CASE() [16/24]

BOOST_AUTO_TEST_CASE ( PointIdentityPreservesCoordinateOrder )

Definition at line 101 of file test_snap_resolver.cpp.

References CONSTRUCTION, and MakePointSnapId().

◆ BOOST_AUTO_TEST_CASE() [17/24]

BOOST_AUTO_TEST_CASE ( ReferenceAffinityOutranksDistance )

◆ BOOST_AUTO_TEST_CASE() [18/24]

BOOST_AUTO_TEST_CASE ( RetainedAngleBranchUsesFivePixelHysteresis )

◆ BOOST_AUTO_TEST_CASE() [19/24]

BOOST_AUTO_TEST_CASE ( RunningTrialFinishesButNoFurtherTrialStartsAfterOverrun )

◆ BOOST_AUTO_TEST_CASE() [20/24]

BOOST_AUTO_TEST_CASE ( StableIdentityBreaksExactRankTie )

◆ BOOST_AUTO_TEST_CASE() [21/24]

BOOST_AUTO_TEST_CASE ( StableIdentityUsesTypedKindAndTarget )

◆ BOOST_AUTO_TEST_CASE() [22/24]

BOOST_AUTO_TEST_CASE ( StickyCandidateHoldsWithinHysteresis )

◆ BOOST_AUTO_TEST_CASE() [23/24]

BOOST_AUTO_TEST_CASE ( StickyCandidateReleasesBeyondHysteresis )

◆ BOOST_AUTO_TEST_CASE() [24/24]

BOOST_AUTO_TEST_CASE ( TraceCallbackReportsRankingTrialsAndResult )