Changeset 2145
- Timestamp:
- Dec 14, 2005, 3:25:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pmesh/test_mesh.py
r2144 r2145 825 825 #self.failUnless(0 == m.__cmp__(m_returned), 826 826 # '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') 827 830 self.failUnless(len(m.userSegments) == len(m_returned.userSegments), 828 831 'segmentoutlinefile:IO of a mesh failed') … … 877 880 #print "(m.__cmp__(m_returned)", m.__cmp__(m_returned) 878 881 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 882 902 883 903 def test_loadxy(self):
Note: See TracChangeset
for help on using the changeset viewer.