]> git.proxmox.com Git - rustc.git/blob - src/doc/book/listings/ch11-writing-automated-tests/listing-11-10/output.txt
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / doc / book / listings / ch11-writing-automated-tests / listing-11-10 / output.txt
1 $ cargo test
2 Compiling silly-function v0.1.0 (file:///projects/silly-function)
3 Finished test [unoptimized + debuginfo] target(s) in 0.58s
4 Running target/debug/deps/silly_function-160869f38cff9166
5
6 running 2 tests
7 test tests::this_test_will_fail ... FAILED
8 test tests::this_test_will_pass ... ok
9
10 failures:
11
12 ---- tests::this_test_will_fail stdout ----
13 I got the value 8
14 thread 'main' panicked at 'assertion failed: `(left == right)`
15 left: `5`,
16 right: `10`', src/lib.rs:19:9
17 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
18
19
20 failures:
21 tests::this_test_will_fail
22
23 test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
24
25 error: test failed, to rerun pass '--lib'