diff options
author | ZyX <kp-pav@yandex.ru> | 2017-02-25 00:22:46 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-02-25 00:22:46 +0300 |
commit | 77ebe85be69d0071097036ecbd277a09b5e805a6 (patch) | |
tree | a3340b7ff4b325fe544ede4117f61b44bca1082e /test/unit/helpers.lua | |
parent | 5f7d8f889cd15b0f98a98675a8ed0fb6500bdbee (diff) | |
download | rneovim-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.lua | 7 |
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) |