Ignore:
Timestamp:
Dec 14, 2005, 3:25:04 PM (19 years ago)
Author:
duncan
Message:

different ordering found in windows and linux with dict.value(). change test so order is not tested

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pmesh/test_mesh.py

    r2144 r2145  
    825825        #self.failUnless(0 == m.__cmp__(m_returned),
    826826        #                'test_exportASCIIsegmentoutlinefile:loading and saving of a mesh failed')
     827       
     828        self.failUnless(3 == len(m_returned.userVertices),
     829                        'segmentoutlinefile:IO of a mesh failed')
    827830        self.failUnless(len(m.userSegments) == len(m_returned.userSegments),
    828831                        'segmentoutlinefile:IO of a mesh failed')
     
    877880        #print "(m.__cmp__(m_returned)", m.__cmp__(m_returned)
    878881        self.failUnless(0 == m.__cmp__(m),
    879                         'test_exportASCIIsegmentoutlinefile:loading and saving of a mesh failed')
    880         self.failUnless(0 == m.__cmp__(m_returned),
    881                         'test_exportASCIIsegmentoutlinefile:loading and saving of a mesh failed')
     882                        'loading and saving of a mesh failed')
     883
     884        self.failUnless(5 == len(m_returned.userVertices),
     885                        'segmentoutlinefile:IO of a mesh failed')
     886        self.failUnless(len(m.userSegments) == len(m_returned.userSegments),
     887                        'segmentoutlinefile:IO of a mesh failed')
     888        for i in range(len(m.userSegments)):
     889            self.failUnless(m.userSegments[i].vertices[0].x ==
     890                            m_returned.userSegments[i].vertices[0].x,
     891                        'loading and saving of a mesh outline fialed')
     892            self.failUnless(m.userSegments[i].vertices[0].y ==
     893                            m_returned.userSegments[i].vertices[0].y,
     894                        'loading and saving of a mesh outline fialed')
     895            self.failUnless(m.userSegments[i].vertices[1].x ==
     896                            m_returned.userSegments[i].vertices[1].x,
     897                        'loading and saving of a mesh outline fialed')
     898            self.failUnless(m.userSegments[i].vertices[1].y ==
     899                            m_returned.userSegments[i].vertices[1].y,
     900                        'loading and saving of a mesh outline fialed')
     901
    882902
    883903    def test_loadxy(self):
Note: See TracChangeset for help on using the changeset viewer.