File: test1.vim

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

set nomore

let s:tree = vimtex#util#tex2tree(
      \ '\newlabel{test}{{\textsc {D\''ej\`a vu}\relax }{caption.1}{}}')
call assert_equal(3, len(s:tree))
call assert_equal('\textsc', s:tree[2][0][0])

" Test for #1599: Fail label completion due to tex2unicode
let s:line = vimtex#util#tex2unicode('{\textsc {D\''ej\`a}\relax }')
call assert_equal('{\textsc {Déjà}\relax }', s:line)

let s:str = 'title={Temporary, complete list of references}'
call assert_equal([s:str], vimtex#util#texsplit(s:str))

call vimtex#test#finished()