test_vlog_handler.vader
1 Before: 2 runtime ale_linters/verilog/vlog.vim 3 4 After: 5 call ale#linter#Reset() 6 7 Execute(The vlog handler should parse old-style lines correctly): 8 AssertEqual 9 \ [ 10 \ { 11 \ 'lnum': 7, 12 \ 'type': 'W', 13 \ 'text': '(vlog-2623) Undefined variable: C.', 14 \ 'filename': 'add.v' 15 \ }, 16 \ { 17 \ 'lnum': 1, 18 \ 'type': 'E', 19 \ 'text': '(vlog-13294) Identifier must be declared with a port mode: C.', 20 \ 'filename': 'file.v' 21 \ }, 22 \ ], 23 \ ale_linters#verilog#vlog#Handle(bufnr(''), [ 24 \ '** Warning: add.v(7): (vlog-2623) Undefined variable: C.', 25 \ '** Error: file.v(1): (vlog-13294) Identifier must be declared with a port mode: C.', 26 \ ]) 27 28 Execute(The vlog handler should parse new-style lines correctly): 29 AssertEqual 30 \ [ 31 \ { 32 \ 'lnum': 7, 33 \ 'type': 'W', 34 \ 'text': '(vlog-2623) Undefined variable: C.', 35 \ 'filename': 'add.v' 36 \ }, 37 \ { 38 \ 'lnum': 1, 39 \ 'type': 'E', 40 \ 'text': '(vlog-13294) Identifier must be declared with a port mode: C.', 41 \ 'filename': 'file.v' 42 \ }, 43 \ ], 44 \ ale_linters#verilog#vlog#Handle(bufnr(''), [ 45 \ '** Warning: (vlog-2623) add.v(7): Undefined variable: C.', 46 \ '** Error: (vlog-13294) file.v(1): Identifier must be declared with a port mode: C.', 47 \ ])