]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/handler/test_verilator_handler.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge commit 'a39f715c13be3352193ffd9c5b7536b8786eff64' as '.vim/bundle/vim-lsp'
[etc/vim.git] / .vim / bundle / ale / test / handler / test_verilator_handler.vader
1 Before:
2   runtime ale_linters/verilog/verilator.vim
3
4 After:
5   call ale#linter#Reset()
6
7 Execute (The verilator handler should parse legacy messages with only line numbers):
8   AssertEqual
9   \ [
10   \   {
11   \     'lnum': 3,
12   \     'type': 'E',
13   \     'text': 'syntax error, unexpected IDENTIFIER',
14   \     'filename': 'foo.v'
15   \   },
16   \   {
17   \     'lnum': 10,
18   \     'type': 'W',
19   \     'text': 'Blocking assignments (=) in sequential (flop or latch) block; suggest delayed assignments (<=).',
20   \     'filename': 'bar.v'
21   \   },
22   \ ],
23   \ ale_linters#verilog#verilator#Handle(bufnr(''), [
24   \ '%Error: foo.v:3: syntax error, unexpected IDENTIFIER',
25   \ '%Warning-BLKSEQ: bar.v:10: Blocking assignments (=) in sequential (flop or latch) block; suggest delayed assignments (<=).',
26   \ ])
27
28 Execute (The verilator handler should parse new format messages with line and column numbers):
29   AssertEqual
30   \ [
31   \   {
32   \     'lnum': 3,
33   \     'col' : 1,
34   \     'type': 'E',
35   \     'text': 'syntax error, unexpected endmodule, expecting ;',
36   \     'filename': 'bar.v'
37   \   },
38   \   {
39   \     'lnum': 4,
40   \     'col' : 6,
41   \     'type': 'W',
42   \     'text': 'Signal is not used: r',
43   \     'filename': 'foo.v'
44   \   },
45   \ ],
46   \ ale_linters#verilog#verilator#Handle(bufnr(''), [
47   \ '%Error: bar.v:3:1: syntax error, unexpected endmodule, expecting ;',
48   \ '%Warning-UNUSED: foo.v:4:6: Signal is not used: r',
49   \ ])