summaryrefslogtreecommitdiff
path: root/test/handler/test_glslang_handler.vader
blob: 6d3a7999e40bbc5d6074420655e89bd7f175970d (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
Before:
  runtime ale_linters/glsl/glslang.vim

Execute(The glsl glslang handler should parse lines correctly):
  AssertEqual
  \ [
  \   {
  \     'lnum': 4,
  \     'col': 0,
  \     'type': 'E',
  \     'text': '''gl_ModelViewProjectionMatrix'' : undeclared identifier',
  \   },
  \   {
  \     'lnum': 121,
  \     'col': 0,
  \     'type': 'W',
  \     'text': '''switch'' : last case/default label not followed by statements',
  \   },
  \ ],
  \ ale_linters#glsl#glslang#Handle(bufnr(''), [
  \ 'ERROR: 0:4: ''gl_ModelViewProjectionMatrix'' : undeclared identifier',
  \ 'WARNING: 0:121: ''switch'' : last case/default label not followed by statements',
  \ 'ERROR: 2 compilation errors.  No code generated.',
  \ ])