diff options
author | David Walter Seikel | 2014-03-22 18:01:23 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-03-22 18:01:23 +1000 |
commit | c13ada054617f6ebceffc80dfea61cd820c216a3 (patch) | |
tree | 1f4fa85c2d37c38d678845f7be2d51a0015aeeed /ClientHamr/GuiLua/test.lua | |
parent | Actually check if we need to return Thing default, and return it. (diff) | |
download | SledjHamr-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.lua | 6 |
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') |
53 | test.f = 42 | 53 | test.f = 42 |
54 | print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help) | 54 | print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help) |
55 | test.f = nil | ||
56 | print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help) | ||
57 | test.fooble = 42 | ||
58 | print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help) | ||
59 | test.fooble = nil | ||
60 | print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help) | ||