Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mf_getapploc.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mf_getapploc macro
4
5 <h4> SAS Macros </h4>
6 @li mf_getapploc.sas
7 @li mp_assert.sas
8
9**/
10
11%mp_assert(
12 iftrue=(
13 "%mf_getapploc(/some/loc/tests/services/x/service)"="/some/loc"
14 ),
15 desc=Checking test appLoc matches,
16 outds=work.test_results
17)
18
19%mp_assert(
20 iftrue=(
21 "%mf_getapploc(/some/loc/tests/services/tests/service)"="/some/loc"
22 ),
23 desc=Checking nested services appLoc matches,
24 outds=work.test_results
25)
26
27%mp_assert(
28 iftrue=(
29 "%mf_getapploc(/some/area/services/admin/service)"="/some/area"
30 ),
31 desc=Checking services appLoc matches,
32 outds=work.test_results
33)
34
35%mp_assert(
36 iftrue=(
37 "%mf_getapploc(/some/area/jobs/jobs/job)"="/some/area"
38 ),
39 desc=Checking jobs appLoc matches,
40 outds=work.test_results
41)
42
43%mp_assert(
44 iftrue=(
45 "%mf_getapploc(/some/area/tests/macros/somemacro.sas)"="/some/area"
46 ),
47 desc=Checking tests/macros appLoc matches (which has no subfolder),
48 outds=work.test_results
49)
50
51%mp_assert(
52 iftrue=(
53 "%mf_getapploc(/some/area/tests/testsetup)"="/some/area"
54 ),
55 desc=Checking tests/testsetup operation,
56 outds=work.test_results
57)
58
59%mp_assert(
60 iftrue=(
61 "%mf_getapploc(/some/area/tests/testteardown)"="/some/area"
62 ),
63 desc=Checking tests/teardown operation,
64 outds=work.test_results
65)