aboutsummaryrefslogtreecommitdiff
path: root/test/unit/helpers.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-06-22 01:01:21 +0300
committerZyX <kp-pav@yandex.ru>2016-06-24 00:07:54 +0300
commitfec7983ecd7ac58f4f8ad9f8b4dc8f6937b87099 (patch)
tree263f4d0c65266b90ab414c1c9b9e948725bfe49a /test/unit/helpers.lua
parent3e7c8e714915672a032eef2950b25264a3c91c58 (diff)
downloadrneovim-fec7983ecd7ac58f4f8ad9f8b4dc8f6937b87099.tar.gz
rneovim-fec7983ecd7ac58f4f8ad9f8b4dc8f6937b87099.tar.bz2
rneovim-fec7983ecd7ac58f4f8ad9f8b4dc8f6937b87099.zip
unittests: Add tests for file.c
Also fixes some errors found.
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r--test/unit/helpers.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua
index f0c193884e..91da459393 100644
--- a/test/unit/helpers.lua
+++ b/test/unit/helpers.lua
@@ -7,6 +7,7 @@ local global_helpers = require('test.helpers')
local neq = global_helpers.neq
local eq = global_helpers.eq
+local ok = global_helpers.ok
-- add some standard header locations
for _, p in ipairs(Paths.include_paths) do
@@ -34,7 +35,8 @@ local function filter_complex_blocks(body)
if not (string.find(line, "(^)", 1, true) ~= nil
or string.find(line, "_ISwupper", 1, true)
or string.find(line, "msgpack_zone_push_finalizer")
- or string.find(line, "msgpack_unpacker_reserve_buffer")) then
+ or string.find(line, "msgpack_unpacker_reserve_buffer")
+ or string.find(line, "inline _Bool")) then
result[#result + 1] = line
end
end
@@ -156,6 +158,7 @@ return {
cimport = cimport,
cppimport = cppimport,
internalize = internalize,
+ ok = ok,
eq = eq,
neq = neq,
ffi = ffi,