Skip to content

Commit eda9fe2

Browse files
committed
fix tests
1 parent fa44eab commit eda9fe2

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function results = bids_runtests(pth)
1+
function results = runtests(pth)
22
% Run tests
33
% List all the 'test_*.m' files located in the same directory as this
44
% function, run them and keep track of how many passed, failed or are
@@ -32,6 +32,7 @@
3232
fprintf('%s',d(i).name(1:end-2));
3333
feval(d(i).name(1:end-2));
3434
results(i).Passed = true;
35+
3536
catch err
3637
results(i).Failed = true;
3738
fprintf('\n%s',err.message);

tests/test_createFilename.m

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
% test for filename creation and their directories
2-
3-
% add parent folder to the parth
4-
addpath(genpath(fullfile(fileparts(mfilename), '..')))
1+
function test_createFilename()
52

3+
% test for filename creation and their directories
64

75
%% check directory and filename creation (PC and eyetracker)
86

9-
clear
10-
117
expParameters.subjectGrp = '';
128
expParameters.subjectNb = 1;
139
expParameters.sessionNb = 1;

tests/test_saveEventsFile.m

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1+
function test_saveEventsFile()
12
% test for events.tsv file creation
23

3-
% add parent folder to the parth
4-
addpath(genpath(fullfile(fileparts(mfilename), '..')))
5-
6-
74
%% set up
85

9-
clear
10-
116
expParameters.subjectGrp = '';
127
expParameters.subjectNb = 1;
138
expParameters.sessionNb = 1;

0 commit comments

Comments
 (0)