Skip to content

Commit

Permalink
Fix TutorialTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ehennestad committed Nov 6, 2024
1 parent d965607 commit 0c8c551
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions +tests/+unit/TutorialTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function inspectTutorialFileWithNwbInspector(testCase)
results = testCase.parseInspectorTextOutput(m);
end

if isempty(cell(results))
if isempty(results)
return
end

Expand Down Expand Up @@ -225,9 +225,12 @@ function inspectTutorialFileWithNwbInspector(testCase)
resultsOut(count).importance = importanceLevels( extractAfter(splitLine{2}, 'Importance.') );
resultsOut(count).filepath = string(strtrim( splitLine{3} ));
resultsOut(count).check_name = string(strtrim(splitLine{4} ));

locationInfo = strsplit(splitLine{end}, 'at location');
resultsOut(count).location = string(strtrim(eval(locationInfo{2})));
try
locationInfo = strsplit(splitLine{end}, 'at location');
resultsOut(count).location = string(strtrim(eval(locationInfo{2})));
catch
resultsOut(count).location = 'N/A';
end
resultsOut(count).message = string(strtrim(lines{i+1}));
end
end
Expand Down

0 comments on commit 0c8c551

Please sign in to comment.