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

Do not set EDITOR/VISUAL for shell
[etc/vim.git] / .vim / bundle / ale / test / handler / test_glslang_handler.vader
1 Before:
2   runtime ale_linters/glsl/glslang.vim
3
4 Execute(The glsl glslang handler should parse lines correctly):
5   AssertEqual
6   \ [
7   \   {
8   \     'lnum': 4,
9   \     'col': 0,
10   \     'type': 'E',
11   \     'text': '''gl_ModelViewProjectionMatrix'' : undeclared identifier',
12   \   },
13   \   {
14   \     'lnum': 121,
15   \     'col': 0,
16   \     'type': 'W',
17   \     'text': '''switch'' : last case/default label not followed by statements',
18   \   },
19   \ ],
20   \ ale_linters#glsl#glslang#Handle(bufnr(''), [
21   \ 'ERROR: 0:4: ''gl_ModelViewProjectionMatrix'' : undeclared identifier',
22   \ 'WARNING: 0:121: ''switch'' : last case/default label not followed by statements',
23   \ 'ERROR: 2 compilation errors.  No code generated.',
24   \ ])
25
26 Execute(The glsl glslang handler should parse lines with options -V or -G correctly):
27   AssertEqual
28   \ [
29   \   {
30   \     'lnum': 7,
31   \     'col': 0,
32   \     'type': 'E',
33   \     'text': '''non-opaque uniforms outside a block'' : not allowed when using GLSL for Vulkan',
34   \   },
35   \   {
36   \     'lnum': 14,
37   \     'col': 0,
38   \     'type': 'W',
39   \     'text': '''__shininess'' : identifiers containing consecutive underscores ("__") are reserved',
40   \   },
41   \ ],
42   \ ale_linters#glsl#glslang#Handle(bufnr(''), [
43   \ 'shader.vert',
44   \ 'ERROR: shader.vert:7: ''non-opaque uniforms outside a block'' : not allowed when using GLSL for Vulkan',
45   \ 'WARNING: shader.vert:14: ''__shininess'' : identifiers containing consecutive underscores ("__") are reserved',
46   \ 'ERROR: 1 compilation errors.  No code generated.',
47   \ 'SPIR-V is not generated for failed compile or link',
48   \ ])