Skip to content

Commit 162032b

Browse files
committed
TestRelative < R2021b
1 parent 2ab3d20 commit 162032b

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

test/TestRelative.m

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
11
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
2-
TestTags = {'R2021a', 'pure'}) ...
2+
TestTags = {'R2019b', 'pure'}) ...
33
TestRelative < matlab.unittest.TestCase
44

55

66
properties (TestParameter)
7-
pr
7+
pr = init_rel();
88
end
99

1010

11-
methods (TestParameterDefinition, Static)
11+
methods (Test)
12+
13+
function test_relative_to(tc, pr)
14+
r = stdlib.relative_to(pr{1}, pr{2});
15+
16+
tc.verifyEqual(r, pr{3}, "relative_to(" + pr{1} + "," + pr{2}+")")
17+
end
18+
19+
function test_proximate_to(tc, pr)
20+
r = stdlib.proximate_to(pr{1}, pr{2});
21+
22+
tc.verifyEqual(r, pr{3}, "proximate_to(" + pr{1} + ", " + pr{2}+")")
23+
end
24+
25+
end
26+
end
27+
1228

1329
function pr = init_rel()
1430

@@ -56,22 +72,3 @@
5672
}];
5773
end
5874
end
59-
end
60-
61-
62-
methods (Test)
63-
64-
function test_relative_to(tc, pr)
65-
r = stdlib.relative_to(pr{1}, pr{2});
66-
67-
tc.verifyEqual(r, pr{3}, "relative_to(" + pr{1} + "," + pr{2}+")")
68-
end
69-
70-
function test_proximate_to(tc, pr)
71-
r = stdlib.proximate_to(pr{1}, pr{2});
72-
73-
tc.verifyEqual(r, pr{3}, "proximate_to(" + pr{1} + ", " + pr{2}+")")
74-
end
75-
76-
end
77-
end

0 commit comments

Comments
 (0)