diff --git a/Cargo.lock b/Cargo.lock index 14cba9f..36e9b65 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -294,9 +294,9 @@ dependencies = [ [[package]] name = "snapbox" -version = "0.5.9" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ac441e1ecf678f68423d47f376d53fabce1afba92c8f68e31508eb27df8562a" +checksum = "94204b12a4d3550420babdb4148c6639692e4e3e61060866929c5107f208aeb6" dependencies = [ "anstream", "anstyle", @@ -311,9 +311,9 @@ dependencies = [ [[package]] name = "snapbox-macros" -version = "0.3.8" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1c4b838b05d15ab22754068cb73500b2f3b07bf09d310e15b27f88160f1de40" +checksum = "b1f4c14672714436c09254801c934b203196a51182a5107fb76591c7cc56424d" dependencies = [ "anstream", ] diff --git a/tests/custom-panic/Cargo.toml b/tests/custom-panic/Cargo.toml index 5db09ca..c00b2ac 100644 --- a/tests/custom-panic/Cargo.toml +++ b/tests/custom-panic/Cargo.toml @@ -12,4 +12,4 @@ release = false human-panic = { path = "../.." } [dev-dependencies] -snapbox = { version = "0.5.9", features = ["cmd"] } +snapbox = { version = "0.6.4", features = ["cmd"] } diff --git a/tests/custom-panic/tests/integration.rs b/tests/custom-panic/tests/integration.rs index 1a2959b..d1264c8 100644 --- a/tests/custom-panic/tests/integration.rs +++ b/tests/custom-panic/tests/integration.rs @@ -3,7 +3,7 @@ fn release() { snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("custom-panic-test")) .assert() - .stderr_matches(snapbox::str![[r#" + .stderr_eq(snapbox::str![[r#" Well, this is embarrassing. 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() { fn debug() { snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("custom-panic-test")) .assert() - .stderr_matches(snapbox::str![[r#" - thread 'main' panicked at tests/custom-panic/src/main.rs:11:5: - OMG EVERYTHING IS ON FIRE!!! - note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace - "#]]) + .stderr_eq(snapbox::str![[r#" +thread 'main' panicked at tests/custom-panic/src/main.rs:11:5: +OMG EVERYTHING IS ON FIRE!!! +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace + +"#]]) .code(101); } diff --git a/tests/single-panic/Cargo.toml b/tests/single-panic/Cargo.toml index 62dd361..e2d2495 100644 --- a/tests/single-panic/Cargo.toml +++ b/tests/single-panic/Cargo.toml @@ -12,4 +12,4 @@ release = false human-panic = { path = "../.." } [dev-dependencies] -snapbox = { version = "0.5.9", features = ["cmd"] } +snapbox = { version = "0.6.4", features = ["cmd"] } diff --git a/tests/single-panic/tests/integration.rs b/tests/single-panic/tests/integration.rs index 5954851..ee92865 100644 --- a/tests/single-panic/tests/integration.rs +++ b/tests/single-panic/tests/integration.rs @@ -3,7 +3,7 @@ fn release() { snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("single-panic-test")) .assert() - .stderr_matches(snapbox::str![[r#" + .stderr_eq(snapbox::str![[r#" Well, this is embarrassing. 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() { fn debug() { snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("single-panic-test")) .assert() - .stderr_matches(snapbox::str![[r#" - thread 'main' panicked at tests/single-panic/src/main.rs:7:5: - OMG EVERYTHING IS ON FIRE!!! - note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace - "#]]) + .stderr_eq(snapbox::str![[r#" +thread 'main' panicked at tests/single-panic/src/main.rs:7:5: +OMG EVERYTHING IS ON FIRE!!! +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace + +"#]]) .code(101); }