]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/sign/test_sign_parsing.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 'a39f715c13be3352193ffd9c5b7536b8786eff64' as '.vim/bundle/vim-lsp'
[etc/vim.git] / .vim / bundle / ale / test / sign / test_sign_parsing.vader
1 Execute (Parsing English signs should work):
2   if has('nvim-0.4.2') || has('patch-8.1.614')
3     AssertEqual
4     \ [0, [[9, 1000001, 'ALEWarningSign']]],
5     \ ale#sign#ParseSigns([
6     \   'Signs for app.js:',
7     \   '    line=9  id=1000001  group=ale_signs  name=ALEWarningSign',
8     \ ])
9   else
10     AssertEqual
11     \ [0, [[9, 1000001, 'ALEWarningSign']]],
12     \ ale#sign#ParseSigns([
13     \   'Signs for app.js:',
14     \   '    line=9  id=1000001  name=ALEWarningSign',
15     \ ])
16   endif
17
18 Execute (Parsing Russian signs should work):
19   if has('nvim-0.4.2') || has('patch-8.1.614')
20     AssertEqual
21     \ [0, [[1, 1000001, 'ALEErrorSign']]],
22     \ ale#sign#ParseSigns(['    строка=1  id=1000001  группа=ale_signs  имя=ALEErrorSign'])
23   else
24     AssertEqual
25     \ [0, [[1, 1000001, 'ALEErrorSign']]],
26     \ ale#sign#ParseSigns(['    строка=1  id=1000001  имя=ALEErrorSign'])
27   endif
28
29 Execute (Parsing Japanese signs should work):
30   if has('nvim-0.4.2') || has('patch-8.1.614')
31     AssertEqual
32     \ [0, [[1, 1000001, 'ALEWarningSign']]],
33     \ ale#sign#ParseSigns(['    行=1  識別子=1000001  グループ=ale_signs  名前=ALEWarningSign'])
34   else
35     AssertEqual
36     \ [0, [[1, 1000001, 'ALEWarningSign']]],
37     \ ale#sign#ParseSigns(['    行=1  識別子=1000001  名前=ALEWarningSign'])
38   endif
39
40 Execute (Parsing Spanish signs should work):
41   if has('nvim-0.4.2') || has('patch-8.1.614')
42     AssertEqual
43     \ [0, [[12, 1000001, 'ALEWarningSign']]],
44     \ ale#sign#ParseSigns(['    línea=12 id=1000001  grupo=ale_signs  nombre=ALEWarningSign'])
45   else
46     AssertEqual
47     \ [0, [[12, 1000001, 'ALEWarningSign']]],
48     \ ale#sign#ParseSigns(['    línea=12 id=1000001  nombre=ALEWarningSign'])
49   endif
50
51 Execute (Parsing Italian signs should work):
52   if has('nvim-0.4.2') || has('patch-8.1.614')
53     AssertEqual
54     \ [0, [[1, 1000001, 'ALEWarningSign']]],
55     \ ale#sign#ParseSigns(['    riga=1 id=1000001, gruppo=ale_signs  nome=ALEWarningSign'])
56   else
57     AssertEqual
58     \ [0, [[1, 1000001, 'ALEWarningSign']]],
59     \ ale#sign#ParseSigns(['    riga=1 id=1000001, nome=ALEWarningSign'])
60   endif
61
62 Execute (Parsing German signs should work):
63   if has('nvim-0.4.2') || has('patch-8.1.614')
64     AssertEqual
65     \ [0, [[235, 1000001, 'ALEErrorSign']]],
66     \ ale#sign#ParseSigns(['    Zeile=235  id=1000001 Gruppe=ale_signs  Name=ALEErrorSign'])
67   else
68     AssertEqual
69     \ [0, [[235, 1000001, 'ALEErrorSign']]],
70     \ ale#sign#ParseSigns(['  Zeile=235  id=1000001 Name=ALEErrorSign'])
71   endif
72
73 Execute (The sign parser should indicate if the dummy sign is set):
74   if has('nvim-0.4.2') || has('patch-8.1.614')
75     AssertEqual
76     \ [1, [[1, 1000001, 'ALEErrorSign']]],
77     \ ale#sign#ParseSigns([
78     \   '    строка=1  id=1000001  group=ale_signs  имя=ALEErrorSign',
79     \   '    line=1  id=1000000  group=ale_signs  name=ALEDummySign',
80     \ ])
81   else
82     AssertEqual
83     \ [1, [[1, 1000001, 'ALEErrorSign']]],
84     \ ale#sign#ParseSigns([
85     \   '    строка=1  id=1000001  имя=ALEErrorSign',
86     \   '    line=1  id=1000000  name=ALEDummySign',
87     \ ])
88   endif