aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ClientHamr/GuiLua/test.lua')
-rw-r--r--ClientHamr/GuiLua/test.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua
index b1ab691..2115098 100644
--- a/ClientHamr/GuiLua/test.lua
+++ b/ClientHamr/GuiLua/test.lua
@@ -87,7 +87,10 @@ print(skang.isBoolean('Nope'))
87print(skang.isBoolean(function (a) return false end)) 87print(skang.isBoolean(function (a) return false end))
88print('') 88print('')
89 89
90-- Make it required, even though it was anyway.
91skang.thing{'f', required = true}
90-- First, disable the default value, so we see "is required" errors. 92-- First, disable the default value, so we see "is required" errors.
93-- Coz using the above syntax means that default is never passed to skang.thing, since it's nil.
91skang.things.f.default = nil 94skang.things.f.default = nil
92test.fooble = 42 95test.fooble = 42
93test.fooble = 'Should fail.' 96test.fooble = 'Should fail.'