summaryrefslogtreecommitdiff
path: root/test/handler/test_mcs_handler.vader
blob: 3defc3286cdc241013e54cb346a521f798fcf97b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Before:
  runtime ale_linters/cs/mcs.vim

After:
  call ale#linter#Reset()

Execute(The mcs handler should handle cannot find symbol errors):
  AssertEqual
  \ [
  \   {
  \     'lnum': 12,
  \     'col' : 29,
  \     'text': '; expected',
  \     'code': 'CS1001',
  \     'type': 'E',
  \   },
  \   {
  \     'lnum': 101,
  \     'col': 0,
  \     'text': 'Unexpected processor directive (no #if for this #endif)',
  \     'code': 'CS1028',
  \     'type': 'E',
  \   },
  \   {
  \     'lnum': 10,
  \     'col': 12,
  \     'text': 'some warning',
  \     'code': 'CS0123',
  \     'type': 'W',
  \   },
  \ ],
  \ ale_linters#cs#mcs#Handle(347, [
  \   'Tests.cs(12,29): error CS1001: ; expected',
  \   'Tests.cs(101,0): error CS1028: Unexpected processor directive (no #if for this #endif)',
  \   'Tests.cs(10,12): warning CS0123: some warning',
  \   'Compilation failed: 2 error(s), 1 warnings',
  \ ])