Skip to content

Commit 5fd3f2d

Browse files
committed
update main testfile
1 parent eb80362 commit 5fd3f2d

File tree

1 file changed

+12
-26
lines changed

1 file changed

+12
-26
lines changed

tests/RunTests.m

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,18 @@
1212
%-- id: 7b59c0b9-b200-4b53-951d-6851dbd1cdc8
1313
%-- name: joe097
1414

15-
% individual tests
16-
t1.name = 'FILE';
17-
t1.tests = TestFile();
18-
t2.name = 'BLOCK';
19-
t2.tests = TestBlock();
20-
t3.name = 'SOURCE';
21-
t3.tests = TestSource();
22-
t4.name = 'DATA ARRAY';
23-
t4.tests = TestDataArray();
24-
t5.name = 'TAG';
25-
t5.tests = TestTag();
26-
t6.name = 'MULTITAG';
27-
t6.tests = TestMultiTag();
28-
t7.name = 'SECTION';
29-
t7.tests = TestSection();
30-
t8.name = 'FEATURE';
31-
t8.tests = TestFeature();
32-
t9.name = 'PROPERTY';
33-
t9.tests = TestProperty();
34-
t10.name = 'DIMENSIONS';
35-
t10.tests = TestDimensions();
36-
t11.name = 'GROUP';
37-
t11.tests = TestGroup();
38-
39-
% concatenate all test handles
40-
all_tests = {t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11};
15+
all_tests = {};
16+
all_tests{end+1} = struct('name', 'FILE', 'tests', {TestFile()});
17+
all_tests{end+1} = struct('name', 'BLOCK', 'tests', {TestBlock()});
18+
all_tests{end+1} = struct('name', 'GROUP', 'tests', {TestGroup()});
19+
all_tests{end+1} = struct('name', 'SOURCE', 'tests', {TestSource()});
20+
all_tests{end+1} = struct('name', 'DATAARRAY', 'tests', {TestDataArray()});
21+
all_tests{end+1} = struct('name', 'TAG', 'tests', {TestTag()});
22+
all_tests{end+1} = struct('name', 'MULTITAG', 'tests', {TestMultiTag()});
23+
all_tests{end+1} = struct('name', 'SECTION', 'tests', {TestSection()});
24+
all_tests{end+1} = struct('name', 'FEATURE', 'tests', {TestFeature()});
25+
all_tests{end+1} = struct('name', 'PROPERTY', 'tests', {TestProperty()});
26+
all_tests{end+1} = struct('name', 'DIMENSIONS', 'tests', {TestDimensions()});
4127

4228
for i = 1:length(all_tests)
4329
fprintf([10 'Execute ' all_tests{i}.name ' tests:\n\n']);

0 commit comments

Comments
 (0)