20%let testcaslib=Public;
22libname castest cas caslib=&testcaslib;
25%put TEST 1 - returns the caslib name
for a valid CAS libref;
28 iftrue=(%mfv_getcaslib(castest)=%upcase(&testcaslib)),
29 desc=Check correct caslib name returned
for a valid CAS libref
34%put TEST 2 - returns empty
for a non-CAS libref (WORK);
37 iftrue=(%mfv_getcaslib(WORK)=),
38 desc=Check empty
string returned
for a non-CAS libref
43%put TEST 3 - returns empty
for a libref that does not exist;
46 iftrue=(%mfv_getcaslib(DOESNOTEXIST)=),
47 desc=Check empty
string returned
for a non-existent libref
52%put TEST 5 - no scope leakage into global macro variables;
54%mp_assertscope(SNAPSHOT)
56%let _rc=%mfv_getcaslib(castest);
58%mp_assertscope(COMPARE,
59 desc=Check mfv_getcaslib does not leak macro variables into GLOBAL scope,