fix(bytetrack): send correct events when opening lines

a bit of test cleanup

ärrår

feeel

SPLIT

fix: sned correct updates on <CR>
This commit is contained in:
Thomas Vigouroux
2020-09-10 18:52:56 +02:00
parent 5581ac88c6
commit f0e258cf85
3 changed files with 88 additions and 14 deletions

View File

@@ -82,6 +82,17 @@ end
function module.ok(res, msg, logfile)
return dumplog(logfile, assert.is_true, res, msg)
end
-- TODO(bfredl): this should "failure" not "error" (issue with dumplog() )
local function epicfail(state, arguments, _)
state.failure_message = arguments[1]
return false
end
assert:register("assertion", "epicfail", epicfail)
function module.fail(msg, logfile)
return dumplog(logfile, assert.epicfail, msg)
end
function module.matches(pat, actual)
if nil ~= string.match(actual, pat) then
return true