Skip to content

Commit 1da0106

Browse files
authored
Merge pull request #144 from epage/s
chore: Upgrade to snapbox 0.6
2 parents e9157c3 + ec2d612 commit 1da0106

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed

Cargo.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/custom-panic/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ release = false
1212
human-panic = { path = "../.." }
1313

1414
[dev-dependencies]
15-
snapbox = { version = "0.5.9", features = ["cmd"] }
15+
snapbox = { version = "0.6.4", features = ["cmd"] }

tests/custom-panic/tests/integration.rs

+7-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
fn release() {
44
snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("custom-panic-test"))
55
.assert()
6-
.stderr_matches(snapbox::str![[r#"
6+
.stderr_eq(snapbox::str![[r#"
77
Well, this is embarrassing.
88
99
custom-panic-test had a problem and crashed. To help us diagnose the problem you can send us a crash report.
@@ -29,10 +29,11 @@ fn release() {
2929
fn debug() {
3030
snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("custom-panic-test"))
3131
.assert()
32-
.stderr_matches(snapbox::str![[r#"
33-
thread 'main' panicked at tests/custom-panic/src/main.rs:11:5:
34-
OMG EVERYTHING IS ON FIRE!!!
35-
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
36-
"#]])
32+
.stderr_eq(snapbox::str![[r#"
33+
thread 'main' panicked at tests/custom-panic/src/main.rs:11:5:
34+
OMG EVERYTHING IS ON FIRE!!!
35+
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
36+
37+
"#]])
3738
.code(101);
3839
}

tests/single-panic/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ release = false
1212
human-panic = { path = "../.." }
1313

1414
[dev-dependencies]
15-
snapbox = { version = "0.5.9", features = ["cmd"] }
15+
snapbox = { version = "0.6.4", features = ["cmd"] }

tests/single-panic/tests/integration.rs

+7-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
fn release() {
44
snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("single-panic-test"))
55
.assert()
6-
.stderr_matches(snapbox::str![[r#"
6+
.stderr_eq(snapbox::str![[r#"
77
Well, this is embarrassing.
88
99
single-panic-test had a problem and crashed. To help us diagnose the problem you can send us a crash report.
@@ -24,10 +24,11 @@ fn release() {
2424
fn debug() {
2525
snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("single-panic-test"))
2626
.assert()
27-
.stderr_matches(snapbox::str![[r#"
28-
thread 'main' panicked at tests/single-panic/src/main.rs:7:5:
29-
OMG EVERYTHING IS ON FIRE!!!
30-
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
31-
"#]])
27+
.stderr_eq(snapbox::str![[r#"
28+
thread 'main' panicked at tests/single-panic/src/main.rs:7:5:
29+
OMG EVERYTHING IS ON FIRE!!!
30+
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
31+
32+
"#]])
3233
.code(101);
3334
}

0 commit comments

Comments
 (0)