Skip to content

Commit c431646

Browse files
authored
Merge pull request #125 from stoujia/master
Unit test for load_texture
2 parents f0b0af9 + 33220bb commit c431646

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_io.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def test_basic(self):
4141
assert np.isclose(mesh_a.vertices, mesh_b.vertices, precision_A).all()
4242
assert np.isclose(mesh_a.faces, mesh_b.faces, precision_A).all()
4343

44+
def test_load_texture(self):
45+
test_text = sio.load_texture('examples/data/example_texture_parcel.gii').darray[0]
46+
self.assertTrue(test_text.size > 0)
47+
4448

4549
if __name__ == "__main__":
4650
unittest.main()

0 commit comments

Comments
 (0)