Skip to content

Commit 7ba4205

Browse files
committed
add unit test
1 parent 0754d97 commit 7ba4205

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_convert.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ def test_r1_to_project(file, project, path_type, request):
6969
assert getattr(output_project, class_list) == getattr(expected_project, class_list)
7070

7171

72+
def test_r1_with_non_unique_contrast_names():
73+
"""Test that R1 to Project class conversion returns the expected Project."""
74+
output_project = r1_to_project(pathlib.Path(TEST_DIR_PATH, "nonUniqueContrast.mat"))
75+
assert output_project.contrasts[0].name == "Contrast 1"
76+
assert output_project.contrasts[1].name == "Contrast 2"
77+
78+
7279
@pytest.mark.parametrize(
7380
"project",
7481
[

0 commit comments

Comments
 (0)