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-const.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Tools/LuaMacro/tests/test-const.lua (limited to 'Tools/LuaMacro/tests/test-const.lua') diff --git a/Tools/LuaMacro/tests/test-const.lua b/Tools/LuaMacro/tests/test-const.lua new file mode 100644 index 0000000..9069568 --- /dev/null +++ b/Tools/LuaMacro/tests/test-const.lua @@ -0,0 +1,10 @@ +require_ 'const' +do + const N,M = 10,20 + do + const N = 5 + assert(N == 5) + end + assert(N == 10 and M == 20) +end +assert(N == nil and M == nil) -- cgit v1.1-26-g67d0