Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mp_webin.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mp_webin macro
4
5 <h4> SAS Macros </h4>
6 @li mp_webin.sas
7 @li mp_assert.sas
8
9**/
10
11/* force SAS9 tests as we don't have a valid URI available */
12%macro mf_getplatform();
13 SAS9
14%mend mf_getplatform;
15
16/* TEST 1 */
17%let _webin_file_count=1;
18%let _webin_filename=test;
19%mp_webin()
20
21%mp_assert(
22 iftrue=(
23 %symexist(_WEBIN_FILEREF1)
24 ),
25 desc=Checking if the macvar exists,
26 outds=work.test_results
27)
28
29/* TEST 2 */
30%global _WEBIN_FILENAME1;
31%mp_assert(
32 iftrue=(
33 %str(&_WEBIN_FILENAME1)=%str(test)
34 ),
35 desc=Checking if the macvar exists,
36 outds=work.test_results
37)
38
39