From 678250ba2795e0cd0e794a65ede3c2e47a0f072b Mon Sep 17 00:00:00 2001 From: Allan Bowe Date: Tue, 30 Nov 2021 16:39:33 +0000 Subject: [PATCH] fix: tests --- README.md | 9 +++++---- tests/serveronly/ms_webout.test.sas | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 25b115e..ac4b5a0 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ Wait - this is a macro library - what is LUA doing here? Well, it is a little k To contribute, simply write your freeform LUA in the LUA folder. Then run the `build.py`, which will convert your LUA into a data step with put statements, and create the macro wrapper with a `ml_` prefix. You can then use your module in any program by running: -``` +```sas /* compile the lua module */ %ml_yourmodule() @@ -126,12 +126,13 @@ filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas"; - one macro per file - prefixes: - _mf_ for macro functions (can be used in open code). - - _mp_ for macro procedures (which generate sas code) + - _ml_ for macros that are used to compile LUA modules - _mm_ for metadata macros (interface with the metadata server). - _mmx_ for macros that use metadata and are XCMD enabled + - _mp_ for macro procedures (which generate sas code) + - _ms_ for macro procedures that will only work with [@sasjs/server](https://github.com/sasjs/server) + - _mv_ for macro procedures that will only work in Viya - _mx_ for macros that are XCMD enabled - - _ml_ for macros that are used to compile LUA modules - - _mv_ for macros that will only work in Viya - follow verb-noun convention - unix style line endings (lf) - individual lines should be no more than 80 characters long diff --git a/tests/serveronly/ms_webout.test.sas b/tests/serveronly/ms_webout.test.sas index f92dc89..34dc868 100644 --- a/tests/serveronly/ms_webout.test.sas +++ b/tests/serveronly/ms_webout.test.sas @@ -15,10 +15,10 @@ data some datasets; x=1; run; -%mm_webout(OPEN,fref=&fref) -%mm_webout(ARR,some,fref=&fref) -%mm_webout(OBJ,datasets,fref=&fref) -%mm_webout(CLOSE,fref=&fref) +%ms_webout(OPEN,fref=&fref) +%ms_webout(ARR,some,fref=&fref) +%ms_webout(OBJ,datasets,fref=&fref) +%ms_webout(CLOSE,fref=&fref) libname test JSON (&fref); data root;