# Changeset 4490

Ignore:
Timestamp:
May 25, 2007, 2:03:03 PM (16 years ago)
Message:

re-add lone_vert tests that i accidentally removed

File:
1 edited

Unmodified
Removed
• ## anuga_core/source/anuga/abstract_2d_finite_volumes/test_util.py

 r4486 check_list(['stage','xmomentum']) def test_remove_lone_verts_d(self): verts = [[0,0],[1,0],[0,1]] tris = [[0,1,2]] new_verts, new_tris = remove_lone_verts(verts, tris) assert new_verts == verts assert new_tris == tris def test_remove_lone_verts_e(self): verts = [[0,0],[1,0],[0,1],[99,99]] tris = [[0,1,2]] new_verts, new_tris = remove_lone_verts(verts, tris) assert new_verts == verts[0:3] assert new_tris == tris def test_remove_lone_verts_a(self): verts = [[99,99],[0,0],[1,0],[99,99],[0,1],[99,99]] tris = [[1,2,4]] new_verts, new_tris = remove_lone_verts(verts, tris) #print "new_verts", new_verts assert new_verts == [[0,0],[1,0],[0,1]] assert new_tris == [[0,1,2]] def test_remove_lone_verts_c(self): verts = [[0,0],[1,0],[99,99],[0,1]] tris = [[0,1,3]] new_verts, new_tris = remove_lone_verts(verts, tris) #print "new_verts", new_verts assert new_verts == [[0,0],[1,0],[0,1]] assert new_tris == [[0,1,2]] def test_remove_lone_verts_b(self): verts = [[0,0],[1,0],[0,1],[99,99],[99,99],[99,99]] tris = [[0,1,2]] new_verts, new_tris = remove_lone_verts(verts, tris) assert new_verts == verts[0:3] assert new_tris == tris def test_remove_lone_verts_e(self): verts = [[0,0],[1,0],[0,1],[99,99]] tris = [[0,1,2]] new_verts, new_tris = remove_lone_verts(verts, tris) assert new_verts == verts[0:3] assert new_tris == tris
Note: See TracChangeset for help on using the changeset viewer.