diff options
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 65d1ad76ef..44fff0e9a7 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -435,6 +435,11 @@ local function expect(contents) return eq(dedent(contents), curbuf_contents()) end +local function expect_any(contents) + contents = dedent(contents) + return ok(nil ~= string.find(curbuf_contents(), contents, 1, true)) +end + local function do_rmdir(path) if lfs.attributes(path, 'mode') ~= 'directory' then return nil @@ -585,6 +590,7 @@ local M = { eq = eq, neq = neq, expect = expect, + expect_any = expect_any, ok = ok, map = map, filter = filter, |