summaryrefslogtreecommitdiff
path: root/test/sign/test_sign_parsing.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-08-26 16:38:27 +0100
committerw0rp <devw0rp@gmail.com>2017-08-26 16:38:27 +0100
commite13651c16d4f80c9453d6790be78671d2f59a95f (patch)
treec5a26f32f45d4f7c34e04ff102afc4b5c1d02060 /test/sign/test_sign_parsing.vader
parentcdd1ddffdb95151f5cb96fd2549eb9e44f2a2fcb (diff)
downloadale-e13651c16d4f80c9453d6790be78671d2f59a95f.zip
Fix #825 - Downgrade signs when problems change
Diffstat (limited to 'test/sign/test_sign_parsing.vader')
-rw-r--r--test/sign/test_sign_parsing.vader18
1 files changed, 13 insertions, 5 deletions
diff --git a/test/sign/test_sign_parsing.vader b/test/sign/test_sign_parsing.vader
index ee112a1b..07848afb 100644
--- a/test/sign/test_sign_parsing.vader
+++ b/test/sign/test_sign_parsing.vader
@@ -1,6 +1,6 @@
Execute (Parsing English signs should work):
AssertEqual
- \ [[9, 1000001, 'ALEWarningSign']],
+ \ [0, [[9, 1000001, 'ALEWarningSign']]],
\ ale#sign#ParseSigns([
\ 'Signs for app.js:',
\ ' line=9 id=1000001 name=ALEWarningSign',
@@ -8,20 +8,28 @@ Execute (Parsing English signs should work):
Execute (Parsing Russian signs should work):
AssertEqual
- \ [[1, 1000001, 'ALEErrorSign']],
+ \ [0, [[1, 1000001, 'ALEErrorSign']]],
\ ale#sign#ParseSigns([' строка=1 id=1000001 имя=ALEErrorSign'])
Execute (Parsing Japanese signs should work):
AssertEqual
- \ [[1, 1000001, 'ALEWarningSign']],
+ \ [0, [[1, 1000001, 'ALEWarningSign']]],
\ ale#sign#ParseSigns([' 行=1 識別子=1000001 名前=ALEWarningSign'])
Execute (Parsing Spanish signs should work):
AssertEqual
- \ [[12, 1000001, 'ALEWarningSign']],
+ \ [0, [[12, 1000001, 'ALEWarningSign']]],
\ ale#sign#ParseSigns([' línea=12 id=1000001 nombre=ALEWarningSign'])
Execute (Parsing Italian signs should work):
AssertEqual
- \ [[1, 1000001, 'ALEWarningSign']],
+ \ [0, [[1, 1000001, 'ALEWarningSign']]],
\ ale#sign#ParseSigns([' riga=1 id=1000001, nome=ALEWarningSign'])
+ \
+Execute (The sign parser should indicate if the dummy sign is set):
+ AssertEqual
+ \ [1, [[1, 1000001, 'ALEErrorSign']]],
+ \ ale#sign#ParseSigns([
+ \ ' строка=1 id=1000001 имя=ALEErrorSign',
+ \ ' line=1 id=1000000 name=ALEDummySign',
+ \ ])