diff options
Diffstat (limited to 'test/test_getmatches.vader')
-rw-r--r-- | test/test_getmatches.vader | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_getmatches.vader b/test/test_getmatches.vader index e728b571..edf84f6e 100644 --- a/test/test_getmatches.vader +++ b/test/test_getmatches.vader @@ -72,6 +72,21 @@ Execute (ale#util#GetMatches should accept a string for a single pattern): \ '^.*:\(\d\+\):\(\d\+\): \(.\+\) \[\(.\+\)\]$' \ ) +Execute (ale#util#MapMatches should map matches): + AssertEqual + \ [ + \ '/path/to/some-filename.js:47:14: Missing trailing comma. [Warning/comma-dangle]', + \ '/path/to/some-filename.js:56:41: Missing semicolon. [Error/semi]', + \ ], + \ ale#util#MapMatches( + \ [ + \ '/path/to/some-filename.js:47:14: Missing trailing comma. [Warning/comma-dangle]', + \ '/path/to/some-filename.js:56:41: Missing semicolon. [Error/semi]', + \ ], + \ '^.*:\(\d\+\):\(\d\+\): \(.\+\) \[\(.\+\)\]$', + \ {match -> match[0]} + \ ) + Execute (ale#util#GetMatches should accept a single line as a string): AssertEqual \ [ |