12%mp_assertscope(SNAPSHOT)
13%put scope check:%mf_getplatform();
14%mp_assertscope(COMPARE,
15 desc=Checking that mf_getplatform does not leak scope,
16 outds=work.test_results
20 iftrue=(%index(SASMETA SASVIYA SASJS BASESAS,%mf_getplatform())>0),
21 desc=Checking that one of the four documented platforms is returned,
22 outds=work.test_results
26 iftrue=(%length(%mf_getplatform())>0),
27 desc=Checking that a platform is always returned,
28 outds=work.test_results
33 iftrue=(%mf_getplatform(
switch=SASSTUDIO)=0),
34 desc=Checking that a non SAS Studio client reports version 0,
35 outds=work.test_results
38%
if %mf_getplatform() ne SASVIYA %then %do;
40 iftrue=(%length(%mf_getplatform(switch=VIYARESTAPI))=0),
41 desc=Checking that the Viya REST switch is empty away from Viya,
42 outds=work.test_results