From 8490abb9d831c00b4b51b162ea1b9004c6fa6c64 Mon Sep 17 00:00:00 2001 From: Martin Davis Date: Tue, 20 Aug 2024 11:23:58 -0700 Subject: [PATCH] Fix BNR line unit test expected results --- .../relateng/RelateNGBoundaryNodeRuleTest.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/unit/operation/relateng/RelateNGBoundaryNodeRuleTest.cpp b/tests/unit/operation/relateng/RelateNGBoundaryNodeRuleTest.cpp index ec2e029f6e..d00716de78 100644 --- a/tests/unit/operation/relateng/RelateNGBoundaryNodeRuleTest.cpp +++ b/tests/unit/operation/relateng/RelateNGBoundaryNodeRuleTest.cpp @@ -99,15 +99,14 @@ void object::test<3> () // under Mod2, A touch point is not boundary - A.int / B.bdy = 0 runRelate(a, b, BoundaryNodeRule::getBoundaryOGCSFS(), "F01FF0102"); - // under EndPoint, A has a boundary node - A.bdy / B.bdy = 0 runRelate(a, b, BoundaryNodeRule::getBoundaryEndPoint(), "FF1F00102"); - + // under MonoValent, A touch point is not boundary - A.bdy / B.bdy = F and A.int / B.bdy = 0 + runRelate(a, b, BoundaryNodeRule::getBoundaryMonovalentEndPoint(), "F01FF0102"); // under MultiValent, A has a boundary node but B does not - A.bdy / B.bdy = F and A.bdy / B.int = 0 - runRelate(a, b, BoundaryNodeRule::getBoundaryMonovalentEndPoint(), "FF10FF1F2"); + runRelate(a, b, BoundaryNodeRule::getBoundaryMultivalentEndPoint(), "FF10FF1F2"); } - // testLineRingTouchAtEndpoints template<> template<> @@ -120,8 +119,10 @@ void object::test<4> () runRelate(a, b, BoundaryNodeRule::getBoundaryOGCSFS(), "F01FFF102"); // under EndPoint, A has a boundary node - A.bdy / B.bdy = 0 runRelate(a, b, BoundaryNodeRule::getBoundaryEndPoint(), "FF1F0F102"); + // under MonoValent, A has no boundary node but B does - A.bdy / B.bdy = F and A.int / B.bdy = 0 + runRelate(a, b, BoundaryNodeRule::getBoundaryMonovalentEndPoint(), "F01FFF102"); // under MultiValent, A has a boundary node but B does not - A.bdy / B.bdy = F and A.int - runRelate(a, b, BoundaryNodeRule::getBoundaryMonovalentEndPoint(), "FF10FF1F2"); + runRelate(a, b, BoundaryNodeRule::getBoundaryMultivalentEndPoint(), "FF10FF1F2"); } // testLineRingTouchAtEndpointAndInterior