From 3c3b5968f1e0e7790ed419bb2bedb6b25184e031 Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 6 Sep 2016 07:57:16 +0300 Subject: [PATCH] Fix Split unit test --- src/SketchPlugin/Test/TestSplit.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/SketchPlugin/Test/TestSplit.py b/src/SketchPlugin/Test/TestSplit.py index aa86ac400..36a03f97f 100644 --- a/src/SketchPlugin/Test/TestSplit.py +++ b/src/SketchPlugin/Test/TestSplit.py @@ -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) == 2) +assert(idList.count(SketchConstraintCoincidenceId) == 4) assert(idList.count(SketchConstraintTangentId) == 1) # Test end @@ -100,8 +100,7 @@ assert(idList.count(SketchConstraintTangentId) == 1) # Test split on arc with two points Sketch_5 = model.addSketch(Part_1_doc, model.defaultPlane("XOY")) -#SketchArc_5_1 = Sketch_5.addArc(50, 50, 6.69872981078, 75, 93.30127018922, 75, True) -SketchArc_5_1 = Sketch_5.addArc(50, 50, 0, 50, 93.30127018922, 75, True) +SketchArc_5_1 = Sketch_5.addArc(50, 50, 93.30127018922, 75, 0, 50, False) Sketch_5.setFixed(SketchArc_5_1.startPoint()) Sketch_5.setFixed(SketchArc_5_1.endPoint()) Sketch_5.setRadius(SketchArc_5_1, 50) @@ -127,4 +126,4 @@ assert(idList.count(SketchConstraintTangentId) == 2) model.end() -#assert(model.checkPythonDump()) +assert(model.checkPythonDump()) -- 2.39.2