diff options
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_statix_handler.vader | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/handler/test_statix_handler.vader b/test/handler/test_statix_handler.vader new file mode 100644 index 00000000..f2a105ee --- /dev/null +++ b/test/handler/test_statix_handler.vader @@ -0,0 +1,16 @@ +Execute(The statix handler should handle statix output): + call ale#test#SetFilename('flake.nix') + + AssertEqual + \ [ + \ { + \ 'lnum': 46, + \ 'type': 'W', + \ 'col': 13, + \ 'code': '3', + \ 'text': 'This assignment is better written with `inherit`' + \ }, + \ ], + \ ale#handlers#statix#Handle(bufnr(''), + \ '<stdin>>46:13:W:3:This assignment is better written with `inherit`' + \) |