Update UI tests for latest nightly and 'pear' error messages.

This commit is contained in:
Jeb Rosen 2021-02-26 20:58:12 -08:00
parent 73037c6620
commit 87f03d3b26
4 changed files with 12 additions and 12 deletions

View File

@ -134,7 +134,7 @@ error[E0308]: mismatched types
| | | |
27 | | rocket::ignite() 27 | | rocket::ignite()
28 | | } 28 | | }
| | ^- help: try adding a semicolon: `;` | | ^- help: consider using a semicolon here: `;`
| |_____| | |_____|
| expected `()`, found struct `Rocket` | expected `()`, found struct `Rocket`

View File

@ -1,4 +1,4 @@
error: invalid path URI: expected token / but found a at index 0 error: invalid path URI: expected token '/' but found 'a' at index 0
--> $DIR/route-path-bad-syntax.rs:5:8 --> $DIR/route-path-bad-syntax.rs:5:8
| |
5 | #[get("a")] 5 | #[get("a")]
@ -6,7 +6,7 @@ error: invalid path URI: expected token / but found a at index 0
| |
= help: expected path in origin form: "/path/<param>" = help: expected path in origin form: "/path/<param>"
error: invalid path URI: unexpected EOF: expected token / at index 0 error: invalid path URI: unexpected EOF: expected token '/' at index 0
--> $DIR/route-path-bad-syntax.rs:8:8 --> $DIR/route-path-bad-syntax.rs:8:8
| |
8 | #[get("")] 8 | #[get("")]
@ -14,7 +14,7 @@ error: invalid path URI: unexpected EOF: expected token / at index 0
| |
= help: expected path in origin form: "/path/<param>" = help: expected path in origin form: "/path/<param>"
error: invalid path URI: expected token / but found a at index 0 error: invalid path URI: expected token '/' but found 'a' at index 0
--> $DIR/route-path-bad-syntax.rs:11:8 --> $DIR/route-path-bad-syntax.rs:11:8
| |
11 | #[get("a/b/c")] 11 | #[get("a/b/c")]
@ -50,7 +50,7 @@ error: paths cannot contain empty segments
| |
= note: expected '/a/b', found '/a/b//' = note: expected '/a/b', found '/a/b//'
error: invalid path URI: expected EOF but found # at index 3 error: invalid path URI: expected EOF but found '#' at index 3
--> $DIR/route-path-bad-syntax.rs:28:11 --> $DIR/route-path-bad-syntax.rs:28:11
| |
28 | #[get("/!@#$%^&*()")] 28 | #[get("/!@#$%^&*()")]

View File

@ -1,18 +1,18 @@
error: invalid path URI: expected token / but found a at index 0 error: invalid path URI: expected token '/' but found 'a' at index 0
--- help: expected path in origin form: "/path/<param>" --- help: expected path in origin form: "/path/<param>"
--> $DIR/route-path-bad-syntax.rs:5:7 --> $DIR/route-path-bad-syntax.rs:5:7
| |
5 | #[get("a")] 5 | #[get("a")]
| ^^^ | ^^^
error: invalid path URI: unexpected EOF: expected token / at index 0 error: invalid path URI: unexpected EOF: expected token '/' at index 0
--- help: expected path in origin form: "/path/<param>" --- help: expected path in origin form: "/path/<param>"
--> $DIR/route-path-bad-syntax.rs:8:7 --> $DIR/route-path-bad-syntax.rs:8:7
| |
8 | #[get("")] 8 | #[get("")]
| ^^ | ^^
error: invalid path URI: expected token / but found a at index 0 error: invalid path URI: expected token '/' but found 'a' at index 0
--- help: expected path in origin form: "/path/<param>" --- help: expected path in origin form: "/path/<param>"
--> $DIR/route-path-bad-syntax.rs:11:7 --> $DIR/route-path-bad-syntax.rs:11:7
| |
@ -45,7 +45,7 @@ error: paths cannot contain empty segments
23 | #[get("/a/b//")] 23 | #[get("/a/b//")]
| ^^^^^^^^ | ^^^^^^^^
error: invalid path URI: expected EOF but found # at index 3 error: invalid path URI: expected EOF but found '#' at index 3
--- help: expected path in origin form: "/path/<param>" --- help: expected path in origin form: "/path/<param>"
--> $DIR/route-path-bad-syntax.rs:28:7 --> $DIR/route-path-bad-syntax.rs:28:7
| |

View File

@ -73,8 +73,8 @@ mod tests {
#[test] #[test]
fn check_display() { fn check_display() {
check_err!("a" => "expected token / but found a at index 0"); check_err!("a" => "expected token '/' but found 'a' at index 0");
check_err!("?" => "expected token / but found ? at index 0"); check_err!("?" => "expected token '/' but found '?' at index 0");
check_err!("" => "expected token / but found byte 232 at index 0"); check_err!("" => "expected token '/' but found byte 232 at index 0");
} }
} }