mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 13:02:28 +08:00
Correct the order of arguments for AssertEqual in some places.
This commit is contained in:
@@ -5,7 +5,7 @@ Execute (Run HandleCSSLintFormat):
|
||||
\])
|
||||
|
||||
Then (The loclist should be correct):
|
||||
AssertEqual g:loclist, [
|
||||
AssertEqual [
|
||||
\ {
|
||||
\ 'bufnr': 42,
|
||||
\ 'vcol': 0,
|
||||
@@ -24,7 +24,7 @@ Then (The loclist should be correct):
|
||||
\ 'type': 'W',
|
||||
\ 'text': "(known-properties) Expected ... but found 'wat'.",
|
||||
\ },
|
||||
\]
|
||||
\], g:loclist
|
||||
|
||||
Execute (Run HandleGCCFormat):
|
||||
let g:loclist = ale#handlers#HandleGCCFormat(42, [
|
||||
@@ -33,7 +33,7 @@ Execute (Run HandleGCCFormat):
|
||||
\])
|
||||
|
||||
Then (The loclist should be correct):
|
||||
AssertEqual g:loclist, [
|
||||
AssertEqual [
|
||||
\ {
|
||||
\ 'bufnr': 42,
|
||||
\ 'vcol': 0,
|
||||
@@ -52,7 +52,7 @@ Then (The loclist should be correct):
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'invalid operands to binary - (have ‘int’ and ‘char *’)',
|
||||
\ },
|
||||
\]
|
||||
\], g:loclist
|
||||
|
||||
Execute (Run HandleUnixFormatAsError):
|
||||
let g:loclist = ale#handlers#HandleUnixFormatAsError(42, [
|
||||
@@ -61,7 +61,7 @@ Execute (Run HandleUnixFormatAsError):
|
||||
\])
|
||||
|
||||
Then (The loclist should be correct):
|
||||
AssertEqual g:loclist, [
|
||||
AssertEqual [
|
||||
\ {
|
||||
\ 'bufnr': 42,
|
||||
\ 'vcol': 0,
|
||||
@@ -80,7 +80,7 @@ Then (The loclist should be correct):
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)',
|
||||
\ },
|
||||
\]
|
||||
\], g:loclist
|
||||
|
||||
Execute (Run HandleUnixFormatAsWarning):
|
||||
let g:loclist = ale#handlers#HandleUnixFormatAsWarning(42, [
|
||||
@@ -89,7 +89,7 @@ Execute (Run HandleUnixFormatAsWarning):
|
||||
\])
|
||||
|
||||
Then (The loclist should be correct):
|
||||
AssertEqual g:loclist, [
|
||||
AssertEqual [
|
||||
\ {
|
||||
\ 'bufnr': 42,
|
||||
\ 'vcol': 0,
|
||||
@@ -108,7 +108,7 @@ Then (The loclist should be correct):
|
||||
\ 'type': 'W',
|
||||
\ 'text': 'if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)',
|
||||
\ },
|
||||
\]
|
||||
\], g:loclist
|
||||
|
||||
Execute (Run a Unix format function with a Windows path):
|
||||
let g:loclist = ale#handlers#HandleUnixFormatAsError(42, [
|
||||
@@ -117,7 +117,7 @@ Execute (Run a Unix format function with a Windows path):
|
||||
\])
|
||||
|
||||
Then (The loclist should be correct):
|
||||
AssertEqual g:loclist, [
|
||||
AssertEqual [
|
||||
\ {
|
||||
\ 'bufnr': 42,
|
||||
\ 'vcol': 0,
|
||||
@@ -136,7 +136,7 @@ Then (The loclist should be correct):
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'foo',
|
||||
\ },
|
||||
\]
|
||||
\], g:loclist
|
||||
|
||||
After:
|
||||
unlet g:loclist
|
||||
|
||||
Reference in New Issue
Block a user