@@ -162,22 +162,20 @@ function test_createJsonExtra()
162162 % cannot open shared object file: No such file or directory
163163 % jsondecode:27 (/github/workspace/lib/bids-matlab/+bids/+util/jsondecode.m)
164164 % test_createJson>test_createJsonExtra:158 (/github/workspace/tests/test_createJson.m)
165+ %
166+ % failure: fileread: cannot open file
167+ % fileread:37 (/octave/share/octave/5.2.0/m/io/fileread.m)
168+ % jsondecode:27 (/github/workspace/lib/bids-matlab/+bids/+util/jsondecode.m)
169+ % test_createJson>test_createJsonExtra:180 (/github/workspace/tests/test_createJson.m)
165170
166171 actualStruct = bids .util.jsondecode(fullfile( ...
167172 cfg .dir.outputSubject, ...
168173 cfg .fileName.modality, ...
169174 fileName ));
170175
171- % data to test against
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, "'"));
176+ return
178177
179- ls
180- expectedStruct = bids .util.jsondecode(fullfile(pwd , ' extra_bold.json' ));
178+ expectedStruct = bids .util.jsondecode(fullfile(pwd , ' testData' , ' extra_bold.json' ));
181179
182180 % test
183181 assertEqual(expectedStruct , actualStruct );
0 commit comments