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

TEST: Test that gifti.relatedFiles doesn't return dupes

parent efcc99f9
No related branches found
No related tags found
No related merge requests found
......@@ -224,6 +224,7 @@ def test_relatedFiles():
assert len(gifti.relatedFiles(badname)) == 0
assert len(gifti.relatedFiles('nonexistent')) == 0
llisting = [op.join(td, f) for f in listing]
lsurfaces = [op.join(td, f) for f in lsurfaces]
rsurfaces = [op.join(td, f) for f in rsurfaces]
lrelated = [op.join(td, f) for f in lrelated]
......@@ -236,6 +237,12 @@ def test_relatedFiles():
result = gifti.relatedFiles(s)
assert sorted(rrelated) == sorted(result)
exp = lsurfaces + lrelated
exp = [f for f in exp if f != lsurfaces[0]]
result = gifti.relatedFiles(lsurfaces[0],
ftypes=gifti.ALLOWED_EXTENSIONS)
assert sorted(exp) == sorted(result)
TEST_VERTS = np.array([
[0, 0, 0],
[1, 0, 0],
......
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