File: test_parse_package_options.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 (34 lines) | stat: -rw-r--r-- 916 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
27
28
29
30
31
32
33
34
set nocompatible
set runtimepath^=../..
filetype plugin on

nnoremap q :qall!<cr>

call vimtex#log#set_silent()

silent edit test_parse_package_options.tex

if empty($INMAKE) | finish | endif

let s:packages = {
      \ 'glossaries-extra': {'style': 'long', 'record': v:true},
      \ 'biblatex': {
      \    'backend': 'biber',
      \    'url': v:false,
      \    'giveninits': v:true,
      \    'style': 'numeric-comp',
      \    'maxcitenames': '99'
      \ },
      \ 'glossaries': {'acronyms': v:true},
      \ 'tikz': {},
      \ 'babel' : {'main': 'german', 'english': v:true},
      \ 'silence': {'debrief': v:true},
      \ 'package1': {'draft': v:true},
      \ 'biblatex-chicago': {'notes': v:true, 'useibid': v:true},
      \ 'amsmath': {},
      \ 'package2': {'draft': v:true},
      \ 'package': {'key': ''}
      \ }
call assert_equal(s:packages, b:vimtex.packages)

call vimtex#test#finished()