mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 13:02:28 +08:00
Fix #469 - Remove Unicode quotes from GCC errors, which cause issues
This commit is contained in:
@@ -53,7 +53,7 @@ Execute (HandleGCCFormat should handle the correct lines of output):
|
||||
\ 'lnum': 10,
|
||||
\ 'col': 27,
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'invalid operands to binary - (have ‘int’ and ‘char *’)',
|
||||
\ 'text': 'invalid operands to binary - (have ''int'' and ''char *'')',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale#handlers#gcc#HandleGCCFormat(42, [
|
||||
@@ -61,6 +61,18 @@ Execute (HandleGCCFormat should handle the correct lines of output):
|
||||
\ '<stdin>:10:27: error: invalid operands to binary - (have ‘int’ and ‘char *’)',
|
||||
\ ])
|
||||
|
||||
Execute (HandleGCCFormat should replace Unicode quotes):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 8,
|
||||
\ 'col': 5,
|
||||
\ 'type': 'W',
|
||||
\ 'text': "'''' \"\"",
|
||||
\ },
|
||||
\ ],
|
||||
\ ale#handlers#gcc#HandleGCCFormat(42, ['<stdin>:8:5: warning: `´‘’ “”'])
|
||||
|
||||
Execute (HandleUnixFormatAsError should handle some example lines of output):
|
||||
AssertEqual
|
||||
\ [
|
||||
|
||||
Reference in New Issue
Block a user