1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on
nnoremap q :qall!<cr>
silent edit test-beamer.tex
if empty($INMAKE) | finish | endif
let s:toc = vimtex#toc#get_entries()
call assert_equal(14, len(s:toc))
call assert_equal('Frame 3: A title here - Subtitle', s:toc[6].title)
call assert_equal(21, s:toc[6].line)
call assert_equal('Frame 4: title - subtitle', s:toc[7].title)
call assert_equal('Frame 5: title', s:toc[8].title)
call assert_equal('Frame 6: subtitle', s:toc[9].title)
call assert_equal('Frame 9: Finito again', s:toc[13].title)
call vimtex#test#finished()
|