diff options
Diffstat (limited to '')
-rw-r--r-- | ClientHamr/GuiLua/test.lua | 3 |
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')) | |||
87 | print(skang.isBoolean(function (a) return false end)) | 87 | print(skang.isBoolean(function (a) return false end)) |
88 | print('') | 88 | print('') |
89 | 89 | ||
90 | -- Make it required, even though it was anyway. | ||
91 | skang.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. | ||
91 | skang.things.f.default = nil | 94 | skang.things.f.default = nil |
92 | test.fooble = 42 | 95 | test.fooble = 42 |
93 | test.fooble = 'Should fail.' | 96 | test.fooble = 'Should fail.' |