diff options
author | TJ DeVries <devries.timothyj@gmail.com> | 2020-03-26 14:24:04 -0400 |
---|---|---|
committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-10-05 09:47:59 -0400 |
commit | aad7a74053e16611de04da4151e3e3be50746e3d (patch) | |
tree | 40f07836d98411d15cf01bfd07a67b4c4349a865 /test/helpers.lua | |
parent | e3afb30e69cc310f9f5ab776d33dc7acaf428981 (diff) | |
download | rneovim-aad7a74053e16611de04da4151e3e3be50746e3d.tar.gz rneovim-aad7a74053e16611de04da4151e3e3be50746e3d.tar.bz2 rneovim-aad7a74053e16611de04da4151e3e3be50746e3d.zip |
vim.validate(): include stacktrace in message
Diffstat (limited to 'test/helpers.lua')
-rw-r--r-- | test/helpers.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/helpers.lua b/test/helpers.lua index 5acd2ea0bd..d59ce2a7c7 100644 --- a/test/helpers.lua +++ b/test/helpers.lua @@ -99,6 +99,9 @@ function module.matches(pat, actual) end error(string.format('Pattern does not match.\nPattern:\n%s\nActual:\n%s', pat, actual)) end +function module.contains(pat, actual) + return module.matches(".*" .. pat .. ".*", actual) +end --- Asserts that `pat` matches one or more lines in the tail of $NVIM_LOG_FILE. --- |