File: test-fixme.vim

package info (click to toggle)
vim-vimtex 2.17-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,844 kB
  • sloc: makefile: 360; python: 103
file content (26 lines) | stat: -rw-r--r-- 526 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on

set nomore

nnoremap q :qall!<cr>

silent edit test-fixme.tex

if empty($INMAKE) | finish | endif

let s:toc = vimtex#toc#get_entries()
let s:envs = filter(deepcopy(s:toc), {_, x -> x.title =~# '^anfx'})
let s:cmds = filter(deepcopy(s:toc), {_, x -> x.title =~# '^fx'})

" let s:i = 0
" for s:x in s:cmds
"   echo s:i '--' s:x.title "\n"
"   let s:i += 1
" endfor

call assert_equal(8, len(s:envs))
call assert_equal(8, len(s:cmds))

call vimtex#test#finished()