Skip to content

Commit ba192e6

Browse files
committed
move dummy extra json for test
1 parent 1c341cc commit ba192e6

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

tests/extra_bold.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"Instructions": "",
3+
"RepetitionTime": [],
4+
"SliceTiming": [],
5+
"TaskDescription": "",
6+
"TaskName": "testtask",
7+
"extraInfo": {
8+
"nestedExtraInfo": "something extra"
9+
}
10+
}

tests/test_createJson.m

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,15 @@ function test_createJsonExtra()
169169
fileName));
170170

171171
% data to test against
172-
expectedStruct = bids.util.jsondecode( ...
173-
fullfile(pwd, ...
174-
'..', ...
175-
'tests', ...
176-
'testData', ...
177-
'extra_bold.json'));
172+
% JsonContent = [
173+
% '{"Instructions": "","RepetitionTime": [],"SliceTiming": [],', ...
174+
% '"TaskDescription": "","TaskName": "testtask",', ...
175+
% '"extraInfo": {"nestedExtraInfo": "something extra"}', ...
176+
% '}'];
177+
% system(sprintf("echo %s%s%s > extra_bold.json", "'", JsonContent, "'"));
178+
179+
180+
expectedStruct = bids.util.jsondecode(fullfile(pwd, 'extra_bold.json'));
178181

179182
% test
180183
assertEqual(expectedStruct, actualStruct);

0 commit comments

Comments
 (0)