test_inko_handler.vader
1 Before: 2 runtime ale_linters/inko/inko.vim 3 4 After: 5 call ale#linter#Reset() 6 7 Execute(The inko handler should parse errors correctly): 8 AssertEqual 9 \ [ 10 \ { 11 \ 'filename': ale#path#Simplify('/tmp/foo.inko'), 12 \ 'lnum': 4, 13 \ 'col': 5, 14 \ 'text': 'this is an error', 15 \ 'type': 'E', 16 \ } 17 \ ], 18 \ ale#handlers#inko#Handle(bufnr(''), [ 19 \ '[', 20 \ ' {', 21 \ ' "file": "/tmp/foo.inko",', 22 \ ' "line": 4,', 23 \ ' "column": 5,', 24 \ ' "message": "this is an error",', 25 \ ' "level": "error"', 26 \ ' }', 27 \ ']' 28 \ ]) 29 30 Execute(The inko handler should parse warnings correctly): 31 AssertEqual 32 \ [ 33 \ { 34 \ 'filename': ale#path#Simplify('/tmp/foo.inko'), 35 \ 'lnum': 4, 36 \ 'col': 5, 37 \ 'text': 'this is a warning', 38 \ 'type': 'W', 39 \ } 40 \ ], 41 \ ale#handlers#inko#Handle(bufnr(''), [ 42 \ '[', 43 \ ' {', 44 \ ' "file": "/tmp/foo.inko",', 45 \ ' "line": 4,', 46 \ ' "column": 5,', 47 \ ' "message": "this is a warning",', 48 \ ' "level": "warning"', 49 \ ' }', 50 \ ']' 51 \ ]) 52 53 Execute(The inko handler should handle empty output): 54 AssertEqual [], ale#handlers#inko#Handle(bufnr(''), [])