aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-22 18:01:23 +1000
committerDavid Walter Seikel2014-03-22 18:01:23 +1000
commitc13ada054617f6ebceffc80dfea61cd820c216a3 (patch)
tree1f4fa85c2d37c38d678845f7be2d51a0015aeeed /ClientHamr/GuiLua/test.lua
parentActually check if we need to return Thing default, and return it. (diff)
downloadSledjHamr-c13ada054617f6ebceffc80dfea61cd820c216a3.zip
SledjHamr-c13ada054617f6ebceffc80dfea61cd820c216a3.tar.gz
SledjHamr-c13ada054617f6ebceffc80dfea61cd820c216a3.tar.bz2
SledjHamr-c13ada054617f6ebceffc80dfea61cd820c216a3.tar.xz
Test and fix setting nil on a Thing with a default.
Diffstat (limited to 'ClientHamr/GuiLua/test.lua')
-rw-r--r--ClientHamr/GuiLua/test.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua
index 6c48ca6..c1aeb7c 100644
--- a/ClientHamr/GuiLua/test.lua
+++ b/ClientHamr/GuiLua/test.lua
@@ -52,3 +52,9 @@ test.ffunc('one', 2)
52--skang.things.ffunc('seven', 'aight') 52--skang.things.ffunc('seven', 'aight')
53test.f = 42 53test.f = 42
54print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help) 54print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help)
55test.f = nil
56print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help)
57test.fooble = 42
58print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help)
59test.fooble = nil
60print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help)