Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Sep 2, 2024
1 parent a484e6e commit 602f704
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/test_bids_file.m
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,8 @@ function test_reorder_schemaless()
'task'
'tracksys'
'acq'
'nuc'
'voi'
'ce'
'trc'
'stain'
Expand Down
13 changes: 12 additions & 1 deletion tests/test_bids_schema.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function test_get_datatypes()
'ieeg', ...
'meg', ...
'micr', ...
'mrs', ...
'motion', ...
'nirs', ...
'perf', ...
Expand Down Expand Up @@ -226,7 +227,15 @@ function test_return_suffix_groups_for_datatype()
assertEqual(datatypes, {'func'});

datatypes = schema.return_datatypes_for_suffix('events');
expected_output = {'beh', 'eeg', 'func', 'ieeg', 'meg', 'motion', 'nirs', 'pet'};
expected_output = {'beh', ...
'eeg', ...
'func', ...
'ieeg', ...
'meg', ...
'motion', ...
'mrs', ...
'nirs', ...
'pet'};
assertEqual(sort(datatypes), sort(expected_output));

datatypes = schema.return_datatypes_for_suffix('m0scan');
Expand Down Expand Up @@ -326,6 +335,8 @@ function test_schemaless()
'task'; ...
'tracksys'; ...
'acquisition'; ...
'nucleus'; ...
'volume'; ...
'ceagent'; ...
'tracer'; ...
'stain'; ...
Expand Down

0 comments on commit 602f704

Please sign in to comment.