mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-17 17:38:01 +00:00
Fix where test
This commit is contained in:
@@ -7,4 +7,3 @@ export INMAKE
|
||||
|
||||
test:
|
||||
$(MYVIM) -u test.vim
|
||||
rm *.out
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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) … {
|
||||
@@ -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) … {
|
||||
Reference in New Issue
Block a user