-
Notifications
You must be signed in to change notification settings - Fork 19
/
ladacUnitTest.m
38 lines (27 loc) · 1.09 KB
/
ladacUnitTest.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% ladacUnitTest implements tests for LADAC
%
% These functions define test cases with well known results.
% This unit test should be run every time a file has been modified,
% to prove that results are still as expected.
% If any changes has been made to the function this test
% script can be used to find unintended errors.
%
% example calls:
% rt = table(runtests('ladacUnitTest'))
% rt = table(runtests('ladacUnitTest','OutputDetail',0))
% Disclaimer:
% SPDX-License-Identifier: GPL-3.0-only
%
% Copyright (C) 2020-2022 Fabian Guecker
% Copyright (C) 2022 TU Braunschweig, Institute of Flight Guidance
% *************************************************************************
% Call all subfunction tests in this file
function tests = ladacUnitTest
tests = functiontests(localfunctions);
end
%% ------------------------------------------------------------------------
function Test_all_library_links_resolved(testCase)
parent_dir = fileparts(mfilename('fullpath'));
unresolved_links = validateLibraryLinks(parent_dir, false);
verifyEqual(testCase, unresolved_links, {});
end