Skip to content

Commit 6357c00

Browse files
committed
fix tests
1 parent 9cefffc commit 6357c00

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

subfun/defaults/checkParameters.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@
211211

212212
fieldsToSet.timing.eventDuration = cfg.mri.repetitionTime / 2 - 0.04; % second
213213

214-
% Time in nb of volumes between blocs in nb of triggers (remember to consider the nb trigger to wait + 1)
214+
% Time in nb of volumes between blocs in nb of triggers
215+
% (remember to consider the nb trigger to wait + 1)
215216
fieldsToSet.timing.triggerIBI = 4;
216217

217218
% Time between blocks in secs

tests/data/config_MT.mat

-10 Bytes
Binary file not shown.

tests/data/config_MT_MST.mat

-5 Bytes
Binary file not shown.

tests/test_checkParameters.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function test_checkParameters_output_dir()
1414
cfg = checkParameters(cfg);
1515

1616
% test
17-
if which('bids.internal.file_utils')
17+
if ~bids.internal.is_github_ci
1818
cfg.dir.output = bids.internal.file_utils(cfg.dir.output, 'cpath');
1919
assertEqual(cfg.dir.output, ...
2020
bids.internal.file_utils(fullfile(fileparts(mfilename('fullpath')), ...
@@ -110,8 +110,8 @@ function test_checkParameters_MT()
110110
cfg = removeDirFieldForGithubAction(cfg);
111111

112112
% uncomment for update default config .mat
113-
% expected = cfg;
114-
% save(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT.mat'), 'expected');
113+
% expected = cfg;
114+
% save(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT.mat'), 'expected');
115115
load(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT.mat'), 'expected');
116116

117117
% test
@@ -130,8 +130,8 @@ function test_checkParameters_MT_MST()
130130
cfg = removeDirFieldForGithubAction(cfg);
131131

132132
% uncomment for update default config .mat
133-
% expected = cfg;
134-
% save(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT_MST.mat'), 'expected');
133+
% expected = cfg;
134+
% save(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT_MST.mat'), 'expected');
135135
load(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT_MST.mat'), 'expected');
136136

137137
% test

0 commit comments

Comments
 (0)