summaryrefslogtreecommitdiff
path: root/test/handler/test_rust_handler.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/handler/test_rust_handler.vader')
-rw-r--r--test/handler/test_rust_handler.vader28
1 files changed, 24 insertions, 4 deletions
diff --git a/test/handler/test_rust_handler.vader b/test/handler/test_rust_handler.vader
index d4d54d37..3e0ed43d 100644
--- a/test/handler/test_rust_handler.vader
+++ b/test/handler/test_rust_handler.vader
@@ -1,8 +1,18 @@
Execute(The Rust handler should handle rustc output):
AssertEqual
\ [
- \ {'lnum': 15, 'bufnr': 347, 'vcol': 0, 'nr': -1, 'type': 'E', 'col': 418, 'text': 'expected one of `.`, `;`, `?`, `}`, or an operator, found `for`'},
- \ {'lnum': 13, 'bufnr': 347, 'vcol': 0, 'nr': -1, 'type': 'E', 'col': 407, 'text': 'no method named `wat` found for type `std::string::String` in the current scope'},
+ \ {
+ \ 'lnum': 15,
+ \ 'type': 'E',
+ \ 'col': 418,
+ \ 'text': 'expected one of `.`, `;`, `?`, `}`, or an operator, found `for`',
+ \ },
+ \ {
+ \ 'lnum': 13,
+ \ 'type': 'E',
+ \ 'col': 407,
+ \ 'text': 'no method named `wat` found for type `std::string::String` in the current scope',
+ \ },
\ ],
\ ale#handlers#rust#HandleRustErrorsForFile(347, 'src/playpen.rs', [
\ '',
@@ -16,8 +26,18 @@ Execute(The Rust handler should handle rustc output):
Execute(The Rust handler should handle cargo output):
AssertEqual
\ [
- \ {'lnum': 15, 'bufnr': 347, 'vcol': 0, 'nr': -1, 'type': 'E', 'col': 11505, 'text': 'expected one of `.`, `;`, `?`, `}`, or an operator, found `for`'},
- \ {'lnum': 13, 'bufnr': 347, 'vcol': 0, 'nr': -1, 'type': 'E', 'col': 11494, 'text': 'no method named `wat` found for type `std::string::String` in the current scope'},
+ \ {
+ \ 'lnum': 15,
+ \ 'type': 'E',
+ \ 'col': 11505,
+ \ 'text': 'expected one of `.`, `;`, `?`, `}`, or an operator, found `for`',
+ \ },
+ \ {
+ \ 'lnum': 13,
+ \ 'type': 'E',
+ \ 'col': 11494,
+ \ 'text': 'no method named `wat` found for type `std::string::String` in the current scope',
+ \ },
\ ],
\ ale#handlers#rust#HandleRustErrorsForFile(347, 'src/playpen.rs', [
\ '',