]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/handler/test_clojure_joker_handler.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge commit 'd49e95aa7ba744f0a7f544aca43afdb6aab41f24' as '.vim/bundle/asyncomplete...
[etc/vim.git] / .vim / bundle / ale / test / handler / test_clojure_joker_handler.vader
1 Before:
2   runtime ale_linters/clojure/joker.vim
3
4 After:
5   call ale#linter#Reset()
6
7 Execute(the clojure joker handler should be able to handle errors):
8   AssertEqual
9   \ [
10   \   {
11   \     'lnum': 123,
12   \     'col': 44,
13   \     'type': 'E',
14   \     'text': 'Read error: Unexpected )',
15   \   },
16   \ ],
17   \ ale_linters#clojure#joker#HandleJokerFormat(0, [
18   \   'test.clj:123:44: Read error: Unexpected )',
19   \ ])
20
21 Execute(the clojure joker handler should be able to handle warnings):
22   AssertEqual
23   \ [
24   \   {
25   \     'lnum': 654,
26   \     'col': 321,
27   \     'type': 'W',
28   \     'text': 'Parse warning: let form with empty body',
29   \   }
30   \ ],
31   \ ale_linters#clojure#joker#HandleJokerFormat(0, [
32   \   'test.clj:654:321: Parse warning: let form with empty body'
33   \ ])
34
35 Execute(the clojure joker handler should be able to handle exceptions):
36   AssertEqual
37   \ [
38   \   {
39   \     'lnum': 123,
40   \     'col': 321,
41   \     'type': 'E',
42   \     'text': 'Exception: something horrible happen',
43   \   }
44   \ ],
45   \ ale_linters#clojure#joker#HandleJokerFormat(0, [
46   \   'test.clj:123:321: Exception: something horrible happen'
47   \ ])
48
49 Execute(the clojure joker handler should be able to handle errors from stdin):
50   AssertEqual
51   \ [
52   \   {
53   \     'lnum': 16,
54   \     'col': 1,
55   \     'type': 'E',
56   \     'text': 'Read error: Unexpected )',
57   \   },
58   \ ],
59   \ ale_linters#clojure#joker#HandleJokerFormat(0, [
60   \   '<stdin>:16:1: Read error: Unexpected )',
61   \ ])
62
63 Execute(the clojure joker handler should be able to handle windows files):
64   AssertEqual
65   \ [
66   \   {
67   \     'lnum': 123,
68   \     'col': 44,
69   \     'type': 'E',
70   \     'text': 'Read error: Unexpected )',
71   \   }
72   \ ],
73   \ ale_linters#clojure#joker#HandleJokerFormat(0, [
74   \   'C:\my\operating\system\is\silly\core.clj:123:44: Read error: Unexpected )',
75   \ ])