]> git.madduck.net Git - etc/vim.git/blob - test/handler/test_nagelfar_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:

Squashed '.vim/bundle/ale/' content from commit 22185c4c
[etc/vim.git] / test / handler / test_nagelfar_handler.vader
1 Before:
2   runtime ale_linters/tcl/nagelfar.vim
3
4 After:
5   call ale#linter#Reset()
6
7 Execute(The nagelfar handler should parse lines correctly):
8   AssertEqual
9   \ [
10   \   {
11   \     'lnum': 5,
12   \     'type': 'W',
13   \     'text': 'Found constant "bepa" which is also a variable.'
14   \   },
15   \   {
16   \     'lnum': 7,
17   \     'type': 'E',
18   \     'text': 'Unknown variable "cep"'
19   \   },
20   \   {
21   \     'lnum': 7,
22   \     'type': 'W',
23   \     'text': 'Unknown command "se"'
24   \   },
25   \   {
26   \     'lnum': 8,
27   \     'type': 'E',
28   \     'text': 'Unknown variable "epa"'
29   \   },
30   \   {
31   \     'lnum': 10,
32   \     'type': 'E',
33   \     'text': 'Unknown variable "depa"'
34   \   },
35   \   {
36   \     'lnum': 10,
37   \     'type': 'W',
38   \     'text': 'Suspicious variable name "$depa"'
39   \   },
40   \   {
41   \     'lnum': 11,
42   \     'type': 'W',
43   \     'text': 'Suspicious variable name "$cepa"'
44   \   },
45   \   {
46   \     'lnum': 13,
47   \     'type': 'E',
48   \     'text': 'Wrong number of arguments (3) to "set"'
49   \   },
50   \   {
51   \     'lnum': 13,
52   \     'type': 'W',
53   \     'text': 'Found constant "bepa" which is also a variable.'
54   \   },
55   \   {
56   \     'lnum': 13,
57   \     'type': 'W',
58   \     'text': 'Found constant "cepa" which is also a variable.'
59   \   },
60   \   {
61   \     'lnum': 18,
62   \     'type': 'E',
63   \     'text': 'Badly formed if statement'
64   \   },
65   \   {
66   \     'lnum': 24,
67   \     'type': 'E',
68   \     'text': 'Unknown subcommand "gurka" to "info"'
69   \   },
70   \   {
71   \     'lnum': 31,
72   \     'type': 'W',
73   \     'text': 'Switch pattern starting with #. This could be a bad comment.'
74   \   },
75   \   {
76   \     'lnum': 31,
77   \     'type': 'W',
78   \     'text': 'Unknown command "This"'
79   \   },
80   \   {
81   \     'lnum': 31,
82   \     'type': 'W',
83   \     'text': 'Unknown command "bad"'
84   \   },
85   \   {
86   \     'lnum': 34,
87   \     'type': 'W',
88   \     'text': 'Unknown command "miffo"'
89   \   },
90   \   {
91   \     'lnum': 55,
92   \     'type': 'W',
93   \     'text': 'Suspicious variable name "$bepa"'
94   \   },
95   \   {
96   \     'lnum': 56,
97   \     'type': 'W',
98   \     'text': 'Suspicious variable name "$apa"'
99   \   },
100   \   {
101   \     'lnum': 61,
102   \     'type': 'E',
103   \     'text': 'Could not complete statement.'
104   \   },
105   \   {
106   \     'lnum': 67,
107   \     'type': 'E',
108   \     'text': 'Could not complete statement.'
109   \   },
110   \   {
111   \     'lnum': 70,
112   \     'type': 'E',
113   \     'text': 'Wrong number of arguments (4) to "proc"'
114   \   },
115   \   {
116   \     'lnum': 72,
117   \     'type': 'E',
118   \     'text': 'Wrong number of arguments (1) to "if"'
119   \   },
120   \   {
121   \     'lnum': 75,
122   \     'type': 'E',
123   \     'text': 'Unbalanced close brace found'
124   \   },
125   \   {
126   \     'lnum': 82,
127   \     'type': 'E',
128   \     'text': 'Unbalanced close brace found'
129   \   },
130   \   {
131   \     'lnum': 88,
132   \     'type': 'E',
133   \     'text': 'Could not complete statement.'
134   \   },
135   \   {
136   \     'lnum': 90,
137   \     'type': 'E',
138   \     'text': 'Wrong number of arguments (1) to "if"'
139   \   },
140   \   {
141   \     'lnum': 93,
142   \     'type': 'W',
143   \     'text': 'Close brace not aligned with line 90 (4 0)'
144   \   },
145   \ ],
146   \ ale_linters#tcl#nagelfar#Handle(bufnr(''), [
147   \   'Line   5: W Found constant "bepa" which is also a variable.',
148   \   'Line   7: E Unknown variable "cep"',
149   \   'Line   7: W Unknown command "se"',
150   \   'Line   8: E Unknown variable "epa"',
151   \   'Line  10: E Unknown variable "depa"',
152   \   'Line  10: N Suspicious variable name "$depa"',
153   \   'Line  11: N Suspicious variable name "$cepa"',
154   \   'Line  13: E Wrong number of arguments (3) to "set"',
155   \   'Line  13: W Found constant "bepa" which is also a variable.',
156   \   'Line  13: W Found constant "cepa" which is also a variable.',
157   \   'Line  18: E Badly formed if statement',
158   \   'Line  24: E Unknown subcommand "gurka" to "info"',
159   \   'Line  31: W Switch pattern starting with #. This could be a bad comment.',
160   \   'Line  31: W Unknown command "This"',
161   \   'Line  31: W Unknown command "bad"',
162   \   'Line  34: W Unknown command "miffo"',
163   \   'Line  55: N Suspicious variable name "$bepa"',
164   \   'Line  56: N Suspicious variable name "$apa"',
165   \   'Line  61: E Could not complete statement.',
166   \   'Line  67: E Could not complete statement.',
167   \   'Line  70: E Wrong number of arguments (4) to "proc"',
168   \   'Line  72: E Wrong number of arguments (1) to "if"',
169   \   'Line  75: E Unbalanced close brace found',
170   \   'Line  82: E Unbalanced close brace found',
171   \   'Line  88: E Could not complete statement.',
172   \   'Line  90: E Wrong number of arguments (1) to "if"',
173   \   'Line  93: N Close brace not aligned with line 90 (4 0)',
174   \ ])