Skip to content

Commit ba43b95

Browse files
committed
Use assert_eq/assert_ne so that if these fail, it prints the output.
1 parent 1ea36c1 commit ba43b95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/cli_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ fn run_wasmtime_unreachable_wat() -> Result<()> {
8888
let wasm = build_wasm("tests/wasm/unreachable.wat")?;
8989
let output = run_wasmtime_for_output(&[wasm.path().to_str().unwrap(), "--disable-cache"])?;
9090

91-
assert!(output.stdout.is_empty());
92-
assert!(!output.stderr.is_empty());
91+
assert_ne!(output.stderr, b"");
92+
assert_eq!(output.stdout, b"");
9393
assert!(!output.status.success());
9494

9595
let code = output

0 commit comments

Comments
 (0)