1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:20:05 +08:00
SpaceVim/bundle/neomake/tests/ft_asciidoc.vader
2020-06-13 14:06:35 +08:00

33 lines
828 B
Plaintext
Vendored

Include: include/setup.vader
Execute (asciidoc):
Save &errorformat
let &errorformat = neomake#makers#ft#asciidoc#asciidoc().errorformat
new
file t.asciidoc
lgetexpr
\ "asciidoc: WARNING: t.asciidoc: line 1: include file not found: /etc/asciidoc/asciidoc.css\n".
\ 'asciidoc: ERROR: t.asciidoc: line 2: only book doctypes can contain level 0 sections'
AssertEqualQf getloclist(0), [
\ {'lnum': 1,
\ 'bufnr': bufnr('%'),
\ 'col': 0,
\ 'valid': 1,
\ 'vcol': 0,
\ 'nr': -1,
\ 'type': 'W',
\ 'pattern': '',
\ 'text': 'include file not found: /etc/asciidoc/asciidoc.css'},
\ {'lnum': 2,
\ 'bufnr': bufnr('%'),
\ 'col': 0,
\ 'valid': 1,
\ 'vcol': 0,
\ 'nr': -1,
\ 'type': 'E',
\ 'pattern': '',
\ 'text': 'only book doctypes can contain level 0 sections'}]
bwipe