]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
74b04a01
XL
1$ cargo test
2 Compiling greeter v0.1.0 (file:///projects/greeter)
3 Finished test [unoptimized + debuginfo] target(s) in 0.91s
923072b8 4 Running unittests src/lib.rs (target/debug/deps/greeter-170b942eb5bf5e3a)
74b04a01
XL
5
6running 1 test
7test tests::greeting_contains_name ... FAILED
8
9failures:
10
11---- tests::greeting_contains_name stdout ----
6a06907d 12thread 'main' panicked at 'assertion failed: result.contains(\"Carol\")', src/lib.rs:12:9
fc512014 13note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
74b04a01
XL
14
15
16failures:
17 tests::greeting_contains_name
18
6a06907d 19test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
74b04a01
XL
20
21error: test failed, to rerun pass '--lib'