/** @file @brief Testing mfs_httpheader.sas macro

SAS Macros

@li mfs_httpheader.sas @li mp_assert.sas @li mp_assertscope.sas **/ %let sasjs_stpsrv_header_loc=%sysfunc(pathname(work))/header.txt; %mp_assertscope(SNAPSHOT) %mfs_httpheader(Content-type,application/csv) %mp_assertscope(COMPARE) data _null_; infile "&sasjs_stpsrv_header_loc"; input; if _n_=1 then call symputx('test1',_infile_); run; %mp_assert( iftrue=(&syscc=0), desc=Check code ran without errors, outds=work.test_results ) %mp_assert( iftrue=("&test1"="Content-type: application/csv"), desc=Checking line was created, outds=work.test_results ) %mfs_httpheader(Content-type,application/text) %let test2=0; data _null_; infile "&sasjs_stpsrv_header_loc"; input; if _n_=2 then call symputx('test2',_infile_); run; %mp_assert( iftrue=(&syscc=0), desc=Check code ran without errors for test2, outds=work.test_results ) %mp_assert( iftrue=("&test2"="Content-type: application/text"), desc=Checking line was created, outds=work.test_results )