aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-09-10 18:52:56 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-11 14:38:58 +0200
commitf0e258cf8569b07153ed6beb1d31455e4de142f4 (patch)
tree8eee3d401a654d15ac7b0500534d24dc36b3c5b6 /test/helpers.lua
parent5581ac88c60b0a3f7595088b30a8621f280b5e4c (diff)
downloadrneovim-f0e258cf8569b07153ed6beb1d31455e4de142f4.tar.gz
rneovim-f0e258cf8569b07153ed6beb1d31455e4de142f4.tar.bz2
rneovim-f0e258cf8569b07153ed6beb1d31455e4de142f4.zip
fix(bytetrack): send correct events when opening lines
a bit of test cleanup ärrår feeel SPLIT fix: sned correct updates on <CR>
Diffstat (limited to 'test/helpers.lua')
-rw-r--r--test/helpers.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index 7817345617..2e0258afed 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -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