I broke up with neovim....vim is my best friend now
This commit is contained in:
32
dot_vim/plugged/vimtex/test/test-toc/test-starred.vim
Normal file
32
dot_vim/plugged/vimtex/test/test-toc/test-starred.vim
Normal file
@@ -0,0 +1,32 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
|
||||
set nomore
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
silent edit test-starred.tex
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
let s:toc = vimtex#toc#get_entries()
|
||||
call assert_equal(11, len(s:toc))
|
||||
|
||||
for [index, level, nstring] in [
|
||||
\ [1, 0, '1'],
|
||||
\ [2, 1, '1.1'],
|
||||
\ [3, 4, ''],
|
||||
\ [4, 0, ''],
|
||||
\ [5, 1, ''],
|
||||
\ [6, 4, ''],
|
||||
\ [7, 1, '1.2'],
|
||||
\ [8, 4, ''],
|
||||
\ [9, 0, ''],
|
||||
\ [10, 1, ''],
|
||||
\]
|
||||
call assert_equal(level, s:toc[index].level)
|
||||
call assert_equal(nstring, b:vimtex.toc.print_number(s:toc[index].number))
|
||||
endfor
|
||||
|
||||
call vimtex#test#finished()
|
||||
Reference in New Issue
Block a user