Skip to content

Commit

Permalink
fix tests (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau authored Sep 4, 2023
1 parent 61d8f73 commit a094633
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/run_tests_matlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,11 @@ on:
jobs:
test:


strategy:
fail-fast: false
matrix:
version: ["R2020a", "R2020b", "R2021a", "R2021b", "R2022a", "R2022b"]
version: [R2021a, R2023a]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
exclude:
- os: windows-latest
version: "R2020a" # MATLAB not available
- os: windows-latest
version: "R2020b" # MATLAB not available

runs-on: ${{matrix.os}}

Expand Down
13 changes: 13 additions & 0 deletions tests/data/reports/ds000117_anat.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
ANAT REPORT

The data acquisition was performed in the {{InstitutionName}}, {{InstitutionalDepartmentName}},
{{InstitutionAddress}}.

MRI scans were acquired at {{MagneticFieldStrength}} Tesla using a {{ManufacturersModelName}}
system from {{Manufacturer}}, with serial number {{DeviceSerialNumber}}.
The software version was {{SoftwareVersions}}.

{{PulseSequenceType}} {{ScanningSequence}} {{SequenceVariant}} FLASH structural
MRI data were collected ({{nb_slices}} slices; repetition time, TR= {{RepetitionTime}}
s; echo time, TE= {{echo_time}} ms; flip angle, FA= {{FlipAngle}} deg; field
of view, FOV= {{fov}} mm; matrix size= {{mat_size}}; voxel size= {{vox_size}}
mm).

The data acquisition was performed in the MRC Cognition and Brain Sciences Unit,
{{InstitutionalDepartmentName}}, 15 Chaucer Road, Cambridge CB2 7EF, UK.

Expand Down
6 changes: 6 additions & 0 deletions tests/tests_private/test_append_to_layout.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ function test_append_to_layout_basic()
'acq', 'hd', ...
'ce', '', ...
'rec', '', ...
'echo', '', ...
'part', ''));

expected.anat.metafile = {};
Expand All @@ -79,6 +80,10 @@ function test_append_to_layout_basic()
expected.anat.dependencies.data = {};
expected.anat.dependencies.group = {};

fields = fieldnames(expected.anat);
for i = 1:numel(fields)
assertEqual(subject.anat.(fields{i}), expected.anat.(fields{i}));
end
assertEqual(subject.anat, expected.anat);

end
Expand Down Expand Up @@ -123,6 +128,7 @@ function test_append_to_structure_basic_test()
'acq', 'hd', ...
'ce', '', ...
'rec', '', ...
'echo', '', ...
'part', ''));
expected.anat(1, 1).metafile = {};

Expand Down

0 comments on commit a094633

Please sign in to comment.