diff options
Diffstat (limited to 'ClientHamr/GuiLua/test.lua')
-rw-r--r-- | ClientHamr/GuiLua/test.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua index 58f8d19..b1ab691 100644 --- a/ClientHamr/GuiLua/test.lua +++ b/ClientHamr/GuiLua/test.lua | |||
@@ -35,7 +35,7 @@ skang.thing('foo') | |||
35 | 35 | ||
36 | -- We can use inline functions if we don't need the function internally. | 36 | -- We can use inline functions if we don't need the function internally. |
37 | skang.thing('ffunc', 'Help Text', function (arg1, arg2) | 37 | skang.thing('ffunc', 'Help Text', function (arg1, arg2) |
38 | print('Inside test.ffunc ' .. arg1 .. ', ' .. arg2) | 38 | print('Inside test.ffunc(' .. arg1 .. ', ' .. arg2 .. ')') |
39 | end, 'number,string') | 39 | end, 'number,string') |
40 | 40 | ||
41 | print('Ending soon') | 41 | print('Ending soon') |
@@ -47,12 +47,14 @@ end | |||
47 | -- Test it. | 47 | -- Test it. |
48 | local skang = require 'skang' | 48 | local skang = require 'skang' |
49 | local test = require 'test' | 49 | local test = require 'test' |
50 | local test_c = require 'test_c' | ||
50 | 51 | ||
51 | print('MODULE ' .. test._NAME .. ', ' .. test.COPYRIGHT .. ' Version: ' .. test.VERSION .. '\n' .. test.VERSION_DESC .. '\n') | 52 | print('MODULE ' .. test._NAME .. ', ' .. test.COPYRIGHT .. ' Version: ' .. test.VERSION .. '\n' .. test.VERSION_DESC .. '\n') |
52 | 53 | ||
53 | print('foo = ' .. test.foo .. ' ->> ' .. skang.things.foo.help) | 54 | print('foo = ' .. test.foo .. ' ->> ' .. skang.things.foo.help) |
54 | print('End ' .. test.bar .. ' ' .. test.VERSION .. ' ' .. skang.things.ffunc.help .. ' ->> ' .. skang.things.f.action) | 55 | print('End ' .. test.bar .. ' ' .. test.VERSION .. ' ' .. skang.things.ffunc.help .. ' ->> ' .. skang.things.f.action) |
55 | test.ffunc('one', 2) | 56 | test.ffunc('one', 2) |
57 | test_c.ffunc(0, 'zero') | ||
56 | --skang.things.ffunc('seven', 'aight') | 58 | --skang.things.ffunc('seven', 'aight') |
57 | print('') | 59 | print('') |
58 | 60 | ||