File: test-cites.vim

package info (click to toggle)
vim-vimtex 2.17-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,844 kB
  • sloc: makefile: 360; python: 103
file content (29 lines) | stat: -rw-r--r-- 831 bytes parent folder | download | duplicates (2)
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
27
28
29
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin indent on
syntax enable

set nomore

nnoremap q :qall!<cr>

silent edit test-cites.tex

if empty($INMAKE) | finish | endif

" Check validity of a single entry
let s:handler = vimtex#context#get(9, 49).handler
call assert_equal('Hemingway1940', s:handler.selected)
let s:actions = s:handler.get_actions()
call assert_equal(9, len(s:actions.entry))

" Check that we get the right key of another entry at a "difficult" spot
call assert_equal('JiM2020', vimtex#context#get(11, 39).handler.selected)

" Check that arxiv handler is available
call assert_equal('Open arXiv',
      \ vimtex#context#get(14, 14).handler.get_actions().menu[3].name)
call assert_equal('Open arXiv',
      \ vimtex#context#get(14, 39).handler.get_actions().menu[2].name)

call vimtex#test#finished()