From bf59f7dc949595f88762c466fa85c853be62696a Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 2 Jul 2020 15:04:47 +0300 Subject: [PATCH] Task #3231: Sketcher Offset of a curve. Unit test. --- src/SketchPlugin/Test/TestOffset.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SketchPlugin/Test/TestOffset.py b/src/SketchPlugin/Test/TestOffset.py index 53e2118eb..b673927cf 100644 --- a/src/SketchPlugin/Test/TestOffset.py +++ b/src/SketchPlugin/Test/TestOffset.py @@ -65,7 +65,9 @@ def checkOffset(theListIn, theListOut, theOutToIn, theDist, isReversed, nbIn, nb aFeatureOut = ModelAPI_Feature.feature(theListOut.object(ind)) assert(aFeatureOut is not None) anInInd = theOutToIn.value(ind) - if (not anInInd == -1): + if (anInInd == -1): + assert(aFeatureOut.getKind() == "SketchArc") + else: aFeatureIn = ModelAPI_Feature.feature(theListIn.object(anInInd)) assert(aFeatureIn is not None) -- 2.39.2