Skip to content

Commit 11506bb

Browse files
committed
test: migrate diagnostics to snapbox
1 parent f05a896 commit 11506bb

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tests/testsuite/diagnostics.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#![allow(deprecated)]
2-
31
use cargo_test_support::project;
2+
use cargo_test_support::str;
43

54
#[cargo_test]
65
fn dont_panic_on_render() {
@@ -20,15 +19,14 @@ edition = "2021"
2019

2120
p.cargo("check")
2221
.with_status(101)
23-
.with_stderr(
24-
"\
25-
error: invalid type: map, expected a sequence
22+
.with_stderr_data(str![[r#"
23+
[ERROR] invalid type: map, expected a sequence
2624
--> Cargo.toml:6:3
2725
|
2826
6 | [[bench.foo]]
2927
| ^^^^^
3028
|
31-
",
32-
)
29+
30+
"#]])
3331
.run();
3432
}

0 commit comments

Comments
 (0)