Version 1.1.4
- typos in descriptions - ambiguous variable definitions - bumped version for all versions of WoW (Classic Era, WotLK, Retail) - added TOCs for all versions of WoW, removed release script
This commit is contained in:
+3
-2
@@ -2,7 +2,7 @@
|
||||
local _G = _G
|
||||
local Grichelde = _G.Grichelde or {}
|
||||
|
||||
local find, pairs, tSize, cRed, cGreen, format = Grichelde.F.find, Grichelde.F.pairs, Grichelde.F.tSize, Grichelde.F.cRed, Grichelde.F.cGreen, Grichelde.F.format
|
||||
local find, pairs, tSize, cRed, cGreen = Grichelde.F.find, Grichelde.F.pairs, Grichelde.F.tSize, Grichelde.F.cRed, Grichelde.F.cGreen
|
||||
|
||||
function Grichelde:TestMatch(text, pattern)
|
||||
-- disable debug print out for testing
|
||||
@@ -17,6 +17,7 @@ function Grichelde:TestMatch(text, pattern)
|
||||
Grichelde.logLevel = oldLogLevel
|
||||
end
|
||||
|
||||
--- Invoke ingame with /run Grichelde:RunTests()
|
||||
function Grichelde:RunTests()
|
||||
local function test(name, replacements, testData, replaceEmotes)
|
||||
local i, ok, size = 0, 0, tSize(testData)
|
||||
@@ -778,7 +779,7 @@ function Grichelde:RunTests()
|
||||
if (ok == all) then
|
||||
self:PrefixedPrint("All %d tests %s", all, cGreen("passed"))
|
||||
else
|
||||
self:PrefixedPrint("%d test %s, %d tests %s", all - ok, cRed("failed"), ok, cGreen("passed"))
|
||||
self:PrefixedPrint("%d test%s %s, %d tests %s", all - ok, all - ok > 1 and "s" or "", cRed("failed"), ok, cGreen("passed"))
|
||||
end
|
||||
|
||||
-- restore old loglevel
|
||||
|
||||
Reference in New Issue
Block a user