Skip to content

Commit df8bc04

Browse files
committed
added another test
1 parent 8fd6995 commit df8bc04

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nibabel/tests/test_scripts.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,17 @@ def check_nib_ls_example4d(opts=[], hdrs_str="", other_str=""):
6969
def check_nib_diff_examples(opts=[], hdrs_str="", other_str=""):
7070
# test nib-diff script
7171
fnames = ['spmT_0001.nii.gz', 'spmT_0001_2.nii.gz']
72+
fnames2 = ['spmT_0001.nii.gz', 'spmT_0001.nii.gz']
7273
code, stdout, stderr = run_command(['nib-diff'] + fnames, check_code=False)
7374
assert_equal(stdout, "Field spmT_0001.nii.gz spmT_0001_2.nii.gz "
7475
" " + "\n" + "descrip b'SPM{T_[1066.0]} - contrast 1: AA-GG' b'SPM{T_[1092.0]}"
7576
" - contrast 1: gg-tt' " + "\n" + "DATA: These files are identical!")
7677

78+
code, stdout, stderr = run_command(['nib-diff'] + fnames2, check_code=False)
79+
assert_equal(stdout, "Field spmT_0001.nii.gz spmT_0001.nii.gz "
80+
" " + "\n" + "DATA: These files are identical!")
81+
82+
7783

7884
@script_test
7985
def test_nib_ls():

0 commit comments

Comments
 (0)