Skip to content
Snippets Groups Projects
Commit 57716097 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

vertexKeys->Sets in unit tests

parent 415f48b3
No related branches found
No related tags found
No related merge requests found
......@@ -89,19 +89,19 @@ def test_mesh_addVertices():
mesh = fslmesh.Mesh(tris, vertices=verts)
assert mesh.selectedVertices() == 'default'
assert mesh.vertexKeys() == ['default']
assert mesh.vertexSets() == ['default']
assert np.all(np.isclose(mesh.vertices, verts))
mesh.addVertices(verts2, 'twotimes')
assert mesh.selectedVertices() == 'twotimes'
assert mesh.vertexKeys() == ['default', 'twotimes']
assert mesh.vertexSets() == ['default', 'twotimes']
assert np.all(np.isclose(mesh.vertices, verts2))
mesh.addVertices(verts3, 'threetimes', select=False)
assert mesh.selectedVertices() == 'twotimes'
assert mesh.vertexKeys() == ['default', 'twotimes', 'threetimes']
assert mesh.vertexSets() == ['default', 'twotimes', 'threetimes']
assert np.all(np.isclose(mesh.vertices, verts2))
mesh.vertices = 'threetimes'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment