diff options
author | w0rp <devw0rp@gmail.com> | 2017-10-26 00:09:26 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-10-26 00:09:26 +0100 |
commit | 2f5b94e07d3a9a2fbd7ebf26dc15cbe158eb738f (patch) | |
tree | ca75785f78fb14e030cdff10f4f28cbb2c3f46f8 /test | |
parent | da365134b537b00966ba6de1b6184e9fd76e4733 (diff) | |
download | ale-2f5b94e07d3a9a2fbd7ebf26dc15cbe158eb738f.zip |
Remove redundant code for the GCC handler, and fix bugs with errors for - not being parsed
Diffstat (limited to 'test')
-rw-r--r-- | test/handler/test_gcc_handler.vader | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/handler/test_gcc_handler.vader b/test/handler/test_gcc_handler.vader index 321dbc6e..9324273e 100644 --- a/test/handler/test_gcc_handler.vader +++ b/test/handler/test_gcc_handler.vader @@ -1,3 +1,12 @@ +Execute(The GCC handler should ignore other lines of output): + AssertEqual + \ [], + \ ale#handlers#gcc#HandleGCCFormat(347, [ + \ 'foo', + \ 'bar', + \ 'baz', + \ ]) + Execute(GCC errors from included files should be parsed correctly): AssertEqual \ [ @@ -136,3 +145,17 @@ Execute(The GCC handler should handle notes with no previous message): \ '<stdin>:1:1: note: x', \ '<stdin>:1:1: note: x', \ ]) + +Execute(The GCC handler should interpret - as being the current file): + AssertEqual + \ [ + \ { + \ 'lnum': 6, + \ 'col': 12, + \ 'type': 'E', + \ 'text': 'Some error', + \ }, + \ ], + \ ale#handlers#gcc#HandleGCCFormat(347, [ + \ '-:6:12: error: Some error', + \ ]) |