]> git.proxmox.com Git - rustc.git/blob - src/doc/book/listings/ch11-writing-automated-tests/no-listing-06-greeter-with-bug/output.txt
New upstream version 1.63.0+dfsg1
[rustc.git] / src / doc / book / listings / ch11-writing-automated-tests / no-listing-06-greeter-with-bug / output.txt
1 $ cargo test
2 Compiling greeter v0.1.0 (file:///projects/greeter)
3 Finished test [unoptimized + debuginfo] target(s) in 0.91s
4 Running unittests src/lib.rs (target/debug/deps/greeter-170b942eb5bf5e3a)
5
6 running 1 test
7 test tests::greeting_contains_name ... FAILED
8
9 failures:
10
11 ---- tests::greeting_contains_name stdout ----
12 thread 'main' panicked at 'assertion failed: result.contains(\"Carol\")', src/lib.rs:12:9
13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
14
15
16 failures:
17 tests::greeting_contains_name
18
19 test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
20
21 error: test failed, to rerun pass '--lib'