]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correction for unit-test for int array
authornds <nds@opencascade.com>
Fri, 8 Jul 2016 12:59:33 +0000 (15:59 +0300)
committernds <nds@opencascade.com>
Fri, 8 Jul 2016 12:59:33 +0000 (15:59 +0300)
src/ModelAPI/Test/TestIntArray.py

index a52bbdd4a41a7dbc42dd46f97eecf99db9637403..6b540f8504a4bd5a9e6b361619ee519b71250773 100755 (executable)
@@ -21,9 +21,10 @@ aSession = ModelAPI_Session.get()
 aPartSet = aSession.moduleDocument()
 aSession.startOperation()
 aSketchFeature = featureToCompositeFeature(aPartSet.addFeature("Sketch"))
-anArray = aSketchFeature.data().addAttribute("IntArray_1", "IntArray")
-anArray.setSize(5)
-assert(anArra.size() == 5)
+aFeatureData = aSketchFeature.data()
+anArray = aFeatureData.addAttribute("IntArray_1", "IntArray")
+aFeatureData.intArray("IntArray_1").setSize(5)
+assert(aFeatureData.intArray("IntArray_1").size() == 5)
 
 #=========================================================================
 # End of test