diff options
author | w0rp <devw0rp@gmail.com> | 2017-04-29 17:33:18 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-04-29 17:33:18 +0100 |
commit | 0b4acd645395d4196f2e346d65aeddf063927f4e (patch) | |
tree | 2701b1faefec6e1cc2dbfd5775d3bf94c6a5e022 /test/handler/test_common_handlers.vader | |
parent | cbb01e32b950f4a5c14d56b41759945662b2db49 (diff) | |
download | ale-0b4acd645395d4196f2e346d65aeddf063927f4e.zip |
Fix #518 Fix handling of spaces in filenames for various linters
Diffstat (limited to 'test/handler/test_common_handlers.vader')
-rw-r--r-- | test/handler/test_common_handlers.vader | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/handler/test_common_handlers.vader b/test/handler/test_common_handlers.vader index 21a6f6a0..a9fc9149 100644 --- a/test/handler/test_common_handlers.vader +++ b/test/handler/test_common_handlers.vader @@ -40,6 +40,20 @@ Execute (HandlePEP8Format should handle the correct lines of output): \ "test.yml:35: [EANSIBLE0002] Trailing whitespace", \ ]) +Execute (HandlePEP8Format should handle names with spaces): + AssertEqual + \ [ + \ { + \ 'lnum': 6, + \ 'col': 6, + \ 'type': 'E', + \ 'text': 'E111: indentation is not a multiple of four', + \ }, + \ ], + \ ale#handlers#python#HandlePEP8Format(42, [ + \ 'C:\something\with spaces.py:6:6: E111 indentation is not a multiple of four', + \ ]) + Execute (HandleGCCFormat should handle the correct lines of output): AssertEqual \ [ @@ -122,6 +136,20 @@ Execute (HandleUnixFormatAsError should handle lines with no space after the col \ 'some_file.xyz:53:10:bar', \ ]) +Execute (HandleUnixFormatAsError should handle names with spaces): + AssertEqual + \ [ + \ { + \ 'lnum': 13, + \ 'col': 90, + \ 'type': 'E', + \ 'text': 'leonard.exclamation.30ppm More than 30 ppm of exclamations. Keep them under control.', + \ }, + \ ], + \ ale#handlers#unix#HandleAsError(42, [ + \ '/Users/rrj/Notes/Astro/Taurus December SM.txt:13:90: leonard.exclamation.30ppm More than 30 ppm of exclamations. Keep them under control.', + \ ]) + Execute (HandleUnixFormatAsWarning should handle some example lines of output): AssertEqual \ [ |