Fix where test

This commit is contained in:
Andy K. Massimino
2021-10-09 13:16:53 -04:00
parent 5960027665
commit a211159069
4 changed files with 24 additions and 8 deletions

View File

@@ -7,4 +7,3 @@ export INMAKE
test:
$(MYVIM) -u test.vim
rm *.out

View File

@@ -1,24 +1,41 @@
set nocompatible
source ../common/bootstrap.vim
if !has('nvim')
echo 'skipping test-where for vim'
call matchup#test#finished()
endif
set encoding=utf-8 columns=120
NoMatchParen
edit +161 normal.c
if matchup#ts_engine#is_enabled(bufnr('.'))
" TODO: matchparen.vim: if empty(a:offscreen.links.close.match)
echo 'skipping test-where for tree_sitter'
call matchup#test#finished()
endif
redir! > test1.out
sil MatchupWhereAmI?
sleep 50m
redir END
normal! j
redir! > test2.out
normal! j
sil MatchupWhereAmI?
sleep 50m
redir END
normal! k
redir! > test3.out
normal! k
sil MatchupWhereAmI??
sleep 50m
redir END
call assert_equal(readfile('test1.out'), readfile('test1.good'))
call assert_equal(readfile('test2.out'), readfile('test2.good'))
call assert_equal(readfile('test3.out'), readfile('test3.good'))
call assert_equal(readfile('test1.good'), readfile('test1.out'))
call assert_equal(readfile('test2.good'), readfile('test2.out'))
call assert_equal(readfile('test3.good'), readfile('test3.out'))
call matchup#test#finished()

View File

@@ -1 +1 @@
match-up: loading...normal_cmd( … { ▶ if (!(VIsual … { ▶ while ( ( … { ▶ if (ctrl_w) … {
match-up: loading...normal_cmd( … { ▶ if (!(VIsual_active && … { ▶ while ( (c >= '1' & … { ▶ if (ctrl_w) … {

View File

@@ -1 +1 @@
match-up: loading...normal_cmd( … { ▶ if (!(VIsual … { ▶ while ( ( … { ▶ if (ctrl_w) … {
match-up: loading...normal_cmd( … { ▶ if (!(VIsual_active && … { ▶ while ( (c >= '1' & … { ▶ if (ctrl_w) … {