From d02795b160851d917ba17b199c31bace3e7a6122 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 8 Jul 2016 15:59:33 +0300 Subject: [PATCH] Correction for unit-test for int array --- src/ModelAPI/Test/TestIntArray.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ModelAPI/Test/TestIntArray.py b/src/ModelAPI/Test/TestIntArray.py index a52bbdd4a..6b540f850 100755 --- a/src/ModelAPI/Test/TestIntArray.py +++ b/src/ModelAPI/Test/TestIntArray.py @@ -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 -- 2.39.2