From 27d6efb5f5a076f825fe2da1875e0cabaf02b4e7 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 17 Nov 2021 23:03:07 +0800 Subject: + LuaMacro --- Tools/LuaMacro/tests/test-atm.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Tools/LuaMacro/tests/test-atm.lua (limited to 'Tools/LuaMacro/tests/test-atm.lua') diff --git a/Tools/LuaMacro/tests/test-atm.lua b/Tools/LuaMacro/tests/test-atm.lua new file mode 100644 index 0000000..7832b8d --- /dev/null +++ b/Tools/LuaMacro/tests/test-atm.lua @@ -0,0 +1,13 @@ +@let env = os.getenv +@if env 'P' +print 'P env was set' +@if A +print 'Global A was true' +@end +@elseif A +print 'Global A was true, no P' +@else +print 'Neither P or A' +@end + + -- cgit v1.1-26-g67d0