aboutsummaryrefslogtreecommitdiff
path: root/test/unit/helpers.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-02-25 00:22:46 +0300
committerZyX <kp-pav@yandex.ru>2017-02-25 00:22:46 +0300
commit77ebe85be69d0071097036ecbd277a09b5e805a6 (patch)
treea3340b7ff4b325fe544ede4117f61b44bca1082e /test/unit/helpers.lua
parent5f7d8f889cd15b0f98a98675a8ed0fb6500bdbee (diff)
downloadrneovim-77ebe85be69d0071097036ecbd277a09b5e805a6.tar.gz
rneovim-77ebe85be69d0071097036ecbd277a09b5e805a6.tar.bz2
rneovim-77ebe85be69d0071097036ecbd277a09b5e805a6.zip
buffer: Hide one of the asserts from lua parser
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r--test/unit/helpers.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua
index 1bfdd32739..4af078b486 100644
--- a/test/unit/helpers.lua
+++ b/test/unit/helpers.lua
@@ -79,6 +79,13 @@ local function cimport(...)
-- format it (so that the lines are "unique" statements), also filter out
-- Objective-C blocks
+ if os.getenv('NVIM_TEST_PRINT_I') == '1' then
+ local lnum = 0
+ for line in body:gmatch('[^\n]+') do
+ lnum = lnum + 1
+ print(lnum, line)
+ end
+ end
body = formatc(body)
body = filter_complex_blocks(body)