test_scala_handler.vader
1 Execute(The handler should return an empty list with empty input): 2 AssertEqual [], ale#handlers#scala#HandleScalacLintFormat(bufnr(''), []) 3 4 Execute(The handler should correctly parse error messages): 5 AssertEqual 6 \ [ 7 \ { 8 \ 'lnum': 4, 9 \ 'col': 8, 10 \ 'text': ''':'' expected but identifier found.', 11 \ 'type': 'E' 12 \ }, 13 \ { 14 \ 'lnum': 6, 15 \ 'col': 2, 16 \ 'text': 'identifier expected but eof found.', 17 \ 'type': 'E' 18 \ } 19 \ ], 20 \ ale#handlers#scala#HandleScalacLintFormat(bufnr(''), 21 \ [ 22 \ "hi.scala:4: error: ':' expected but identifier found.", 23 \ " Some stupid scala code", 24 \ " ^", 25 \ "hi.scala:6: error: identifier expected but eof found.", 26 \ ")", 27 \ " ^", 28 \ "two errors found", 29 \ ])