]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Task #3231: Sketcher Offset of a curve. Unit test.
authorjfa <jfa@opencascade.com>
Thu, 2 Jul 2020 12:04:47 +0000 (15:04 +0300)
committerjfa <jfa@opencascade.com>
Thu, 2 Jul 2020 12:04:47 +0000 (15:04 +0300)
src/SketchPlugin/Test/TestOffset.py

index 53e2118eb74320e0e0610d9a168f7b3c22130c26..b673927cfef3e0e2f736be9e1964f0e30d22b2da 100644 (file)
@@ -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)