(Deleted) First Test Question?


40
views
0
3 months ago by
Anwar  

I am writing this first test question to test this platform. This question will be removed once all scenarios are tested with this question.
Thanks.

-Anwar.

TEST CODE-

def dimensionChange(self):   
        # print 'self.fieldDimPrevious=',self.fieldDimPrevious
        # print 'self.fieldDim=',self.fieldDim
        if self.fieldDimPrevious:
            if  self.fieldDimPrevious.x != self.fieldDim.x or self.fieldDimPrevious.y != self.fieldDim.y or self.fieldDimPrevious.z != self.fieldDim.z:                
                return True
            else:
                return False
        else: 
            return False
            
def resetDimensionChangeMonitoring(self):
        # this reset is necessary to avoid recursive calls in the SimpleTabView -- this code needs to be changed because at this point it looks horrible
        self.fieldDimPrevious=self.fieldDim 
Community: CompuCell3D
Code is colorful and think it works.
written 3 months ago by Anwar  
It looks terrific! ;)
written 3 months ago by Maciek Swat  

1 Answer


2
3 months ago by
Anwar  
Answer is that the test code the function resetDimensionChangeMonitoring() is does not return any value.
Please login to add an answer/comment or follow this question.
The thread is closed. No new answer/comment may be added.

Similar posts:
Search »
  • Nothing matches yet.