summaryrefslogtreecommitdiff
path: root/test/handler/test_vlog_handler.vader
blob: a70665db0f066e28acc10afdfeffc34279acb008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Before:
  runtime ale_linters/verilog/vlog.vim

After:
  call ale#linter#Reset()

Execute(The vlog handler should parse lines correctly):
  AssertEqual
  \ [
  \   {
  \     'lnum': 7,
  \     'type': 'W',
  \     'text': '(vlog-2623) Undefined variable: C.'
  \   },
  \   {
  \     'lnum': 1,
  \     'type': 'E',
  \     'text': '(vlog-13294) Identifier must be declared with a port mode: C.'
  \   },
  \ ],
  \ ale_linters#verilog#vlog#Handle(bufnr(''), [
  \   '** Warning: add.v(7): (vlog-2623) Undefined variable: C.',
  \   '** Error: file.v(1): (vlog-13294) Identifier must be declared with a port mode: C.',
  \ ])