2016-12-16 10:01:28 +00:00
|
|
|
Execute (Parsing English signs should work):
|
2020-03-15 06:58:38 +00:00
|
|
|
if has('nvim-0.4.2') || has('patch-8.1.614')
|
2019-09-25 08:15:16 +00:00
|
|
|
AssertEqual
|
|
|
|
\ [0, [[9, 1000001, 'ALEWarningSign']]],
|
|
|
|
\ ale#sign#ParseSigns([
|
|
|
|
\ 'Signs for app.js:',
|
|
|
|
\ ' line=9 id=1000001 group=ale name=ALEWarningSign',
|
|
|
|
\ ])
|
|
|
|
else
|
|
|
|
AssertEqual
|
|
|
|
\ [0, [[9, 1000001, 'ALEWarningSign']]],
|
|
|
|
\ ale#sign#ParseSigns([
|
|
|
|
\ 'Signs for app.js:',
|
|
|
|
\ ' line=9 id=1000001 name=ALEWarningSign',
|
|
|
|
\ ])
|
|
|
|
endif
|
2016-12-16 10:01:28 +00:00
|
|
|
|
|
|
|
Execute (Parsing Russian signs should work):
|
2020-03-15 06:58:38 +00:00
|
|
|
if has('nvim-0.4.2') || has('patch-8.1.614')
|
2019-09-25 08:15:16 +00:00
|
|
|
AssertEqual
|
|
|
|
\ [0, [[1, 1000001, 'ALEErrorSign']]],
|
2019-10-04 12:54:33 +00:00
|
|
|
\ ale#sign#ParseSigns([' строка=1 id=1000001 группа=ale имя=ALEErrorSign'])
|
2019-09-25 08:15:16 +00:00
|
|
|
else
|
|
|
|
AssertEqual
|
|
|
|
\ [0, [[1, 1000001, 'ALEErrorSign']]],
|
|
|
|
\ ale#sign#ParseSigns([' строка=1 id=1000001 имя=ALEErrorSign'])
|
|
|
|
endif
|
2016-12-16 10:01:28 +00:00
|
|
|
|
|
|
|
Execute (Parsing Japanese signs should work):
|
2020-03-15 06:58:38 +00:00
|
|
|
if has('nvim-0.4.2') || has('patch-8.1.614')
|
2019-09-25 08:15:16 +00:00
|
|
|
AssertEqual
|
|
|
|
\ [0, [[1, 1000001, 'ALEWarningSign']]],
|
2019-10-04 12:54:33 +00:00
|
|
|
\ ale#sign#ParseSigns([' 行=1 識別子=1000001 グループ=ale 名前=ALEWarningSign'])
|
2019-09-25 08:15:16 +00:00
|
|
|
else
|
|
|
|
AssertEqual
|
|
|
|
\ [0, [[1, 1000001, 'ALEWarningSign']]],
|
|
|
|
\ ale#sign#ParseSigns([' 行=1 識別子=1000001 名前=ALEWarningSign'])
|
|
|
|
endif
|
2017-01-22 13:40:23 +00:00
|
|
|
|
|
|
|
Execute (Parsing Spanish signs should work):
|
2020-03-15 06:58:38 +00:00
|
|
|
if has('nvim-0.4.2') || has('patch-8.1.614')
|
2019-09-25 08:15:16 +00:00
|
|
|
AssertEqual
|
|
|
|
\ [0, [[12, 1000001, 'ALEWarningSign']]],
|
2019-10-04 12:54:33 +00:00
|
|
|
\ ale#sign#ParseSigns([' línea=12 id=1000001 grupo=ale nombre=ALEWarningSign'])
|
2019-09-25 08:15:16 +00:00
|
|
|
else
|
|
|
|
AssertEqual
|
|
|
|
\ [0, [[12, 1000001, 'ALEWarningSign']]],
|
|
|
|
\ ale#sign#ParseSigns([' línea=12 id=1000001 nombre=ALEWarningSign'])
|
|
|
|
endif
|
2017-03-10 13:21:08 +00:00
|
|
|
|
|
|
|
Execute (Parsing Italian signs should work):
|
2020-03-15 06:58:38 +00:00
|
|
|
if has('nvim-0.4.2') || has('patch-8.1.614')
|
2019-09-25 08:15:16 +00:00
|
|
|
AssertEqual
|
|
|
|
\ [0, [[1, 1000001, 'ALEWarningSign']]],
|
2019-10-04 12:54:33 +00:00
|
|
|
\ ale#sign#ParseSigns([' riga=1 id=1000001, gruppo=ale nome=ALEWarningSign'])
|
2019-09-25 08:15:16 +00:00
|
|
|
else
|
|
|
|
AssertEqual
|
|
|
|
\ [0, [[1, 1000001, 'ALEWarningSign']]],
|
|
|
|
\ ale#sign#ParseSigns([' riga=1 id=1000001, nome=ALEWarningSign'])
|
|
|
|
endif
|
|
|
|
|
2019-10-04 12:54:33 +00:00
|
|
|
Execute (Parsing German signs should work):
|
2020-03-15 06:58:38 +00:00
|
|
|
if has('nvim-0.4.2') || has('patch-8.1.614')
|
2019-10-04 12:54:33 +00:00
|
|
|
AssertEqual
|
|
|
|
\ [0, [[235, 1000001, 'ALEErrorSign']]],
|
|
|
|
\ ale#sign#ParseSigns([' Zeile=235 id=1000001 Gruppe=ale Name=ALEErrorSign'])
|
|
|
|
else
|
|
|
|
AssertEqual
|
|
|
|
\ [0, [[235, 1000001, 'ALEErrorSign']]],
|
|
|
|
\ ale#sign#ParseSigns([' Zeile=235 id=1000001 Name=ALEErrorSign'])
|
|
|
|
endif
|
|
|
|
|
2017-08-26 15:38:27 +00:00
|
|
|
Execute (The sign parser should indicate if the dummy sign is set):
|
2020-03-15 06:58:38 +00:00
|
|
|
if has('nvim-0.4.2') || has('patch-8.1.614')
|
2019-09-25 08:15:16 +00:00
|
|
|
AssertEqual
|
|
|
|
\ [1, [[1, 1000001, 'ALEErrorSign']]],
|
|
|
|
\ ale#sign#ParseSigns([
|
|
|
|
\ ' строка=1 id=1000001 group=ale имя=ALEErrorSign',
|
|
|
|
\ ' line=1 id=1000000 group=ale name=ALEDummySign',
|
|
|
|
\ ])
|
|
|
|
else
|
|
|
|
AssertEqual
|
|
|
|
\ [1, [[1, 1000001, 'ALEErrorSign']]],
|
|
|
|
\ ale#sign#ParseSigns([
|
|
|
|
\ ' строка=1 id=1000001 имя=ALEErrorSign',
|
|
|
|
\ ' line=1 id=1000000 name=ALEDummySign',
|
|
|
|
\ ])
|
|
|
|
endif
|