From: nds Date: Tue, 29 Nov 2016 06:06:36 +0000 (+0300) Subject: Issue #1763 Coincidence constraint lost after removing one of split lines. Test case... X-Git-Tag: V_2.6.0~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9de970237be395cc1d12812f607cb6ac67e3839e;p=modules%2Fshaper.git Issue #1763 Coincidence constraint lost after removing one of split lines. Test case is corrected to satisfy increased number of coincidences. --- diff --git a/src/SketchPlugin/Test/TestSplit.py b/src/SketchPlugin/Test/TestSplit.py index d078e956a..82eacfbfd 100644 --- a/src/SketchPlugin/Test/TestSplit.py +++ b/src/SketchPlugin/Test/TestSplit.py @@ -29,7 +29,7 @@ for index in range(Sketch_1_feature.numberOfSubs()): assert(idList.count(SketchLineId) == 2) assert(idList.count(SketchPointId) == 1) -assert(idList.count(SketchConstraintCoincidenceId) == 2) +assert(idList.count(SketchConstraintCoincidenceId) == 3) assert(idList.count(SketchConstraintParallelId) == 1) # Test end @@ -50,7 +50,7 @@ for index in range(Sketch_2_feature.numberOfSubs()): assert(idList.count(SketchLineId) == 3) assert(idList.count(SketchPointId) == 2) -assert(idList.count(SketchConstraintCoincidenceId) == 4) +assert(idList.count(SketchConstraintCoincidenceId) == 6) assert(idList.count(SketchConstraintParallelId) == 2) # Test end @@ -71,7 +71,7 @@ for index in range(Sketch_3_feature.numberOfSubs()): assert(idList.count(SketchArcId) == 2) assert(idList.count(SketchPointId) == 2) -assert(idList.count(SketchConstraintCoincidenceId) == 4) +assert(idList.count(SketchConstraintCoincidenceId) == 6) assert(idList.count(SketchConstraintTangentId) == 1) # Test end @@ -93,7 +93,7 @@ for index in range(Sketch_4_feature.numberOfSubs()): assert(idList.count(SketchArcId) == 2) assert(idList.count(SketchPointId) == 1) -assert(idList.count(SketchConstraintCoincidenceId) == 2) +assert(idList.count(SketchConstraintCoincidenceId) == 3) assert(idList.count(SketchConstraintEqualId) == 1) assert(idList.count(SketchConstraintTangentId) == 1) # Test end @@ -119,7 +119,7 @@ for index in range(Sketch_5_feature.numberOfSubs()): assert(idList.count(SketchArcId) == 3) assert(idList.count(SketchPointId) == 0) -assert(idList.count(SketchConstraintCoincidenceId) == 4) +assert(idList.count(SketchConstraintCoincidenceId) == 6) assert(idList.count(SketchConstraintEqualId) == 2) assert(idList.count(SketchConstraintTangentId) == 2) # Test end