From 248a5eb2f61aafdc7a20d3eea5709476c2a21a5b Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Tue, 7 Nov 2017 22:11:49 -0800 Subject: ale_linters: add 'dafny' linter --- test/handler/test_dafny_handler.vader | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 test/handler/test_dafny_handler.vader (limited to 'test') diff --git a/test/handler/test_dafny_handler.vader b/test/handler/test_dafny_handler.vader new file mode 100644 index 00000000..1de9a77f --- /dev/null +++ b/test/handler/test_dafny_handler.vader @@ -0,0 +1,26 @@ +Execute(The Dafny handler should parse output correctly): + runtime ale_linters/dafny/dafny.vim + AssertEqual + \ [ + \ { + \ 'bufnr': 0, + \ 'col': 45, + \ 'lnum': 123, + \ 'text': 'A precondition for this call might not hold.', + \ 'type': 'E' + \ }, + \ { + \ 'bufnr': 0, + \ 'col': 90, + \ 'lnum': 678, + \ 'text': 'This is the precondition that might not hold.', + \ 'type': 'W' + \ } + \ ], + \ ale_linters#dafny#dafny#Handle(0, [ + \ 'File.dfy(123,45): Error BP5002: A precondition for this call might not hold.', + \ 'File.dfy(678,90): Related location: This is the precondition that might not hold.' + \ ]) + +After: + call ale#linter#Reset() -- cgit v1.2.3