-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestRChat.lua
More file actions
58 lines (46 loc) · 1.15 KB
/
testRChat.lua
File metadata and controls
58 lines (46 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
test_run = {
}
require "rChat.test.tk"
require "rChat.test.zos"
require "LibSFUtils.LibSFUtils_Global"
require "LibSFUtils.LibSFUtils"
local TK = TestKit
TK.init()
local TR = test_run
local d = print
local SF = LibSFUtils
function TR.printTable(tbl)
for k,v in pairs(tbl) do
if type(v) == "table" then
for kk, vv in pairs(v) do
if type(vv) == "boolean" then
d("k="..k.." kk="..kk.." vv="..SF.bool2str(vv))
else
d("k="..k.." kk="..kk.." vv="..vv)
end
end
elseif type(v) == "boolean" then
d("k="..k.." v="..SF.bool2str(v))
elseif type(v) == "function" then
d("k="..k.." v=function")
else
d("k="..k.." v="..v)
end
end
end
d("\n")
-- main
TK.init()
-- we are running subtests as part of a suite of tests
Suite = true
require "rChat.test.Format_Test"
Format_runTests()
d("\n--------------\n")
require "rChat.test.Data_Test"
Data_runTests()
d("\n--------------\n")
require "rChat.test.Mention_Test"
Mention_runTests()
d("\n--------------\n")
d("\n")
TK.showResult("testRChat")