diff options
Diffstat (limited to 'Tools/LuaMacro/tests/test-const.lua')
-rw-r--r-- | Tools/LuaMacro/tests/test-const.lua | 10 |
1 files changed, 10 insertions, 0 deletions
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)
|