Correct the order of arguments for AssertEqual in some places.

This commit is contained in:
w0rp
2016-10-14 20:34:21 +01:00
parent 56b866c8d8
commit c726503acf
4 changed files with 26 additions and 26 deletions

View File

@@ -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