trpl-zh-cn/listings/ch11-writing-automated-tests/output-only-03-multiple-tests/output.txt
2023-01-16 17:34:52 +08:00

12 lines
393 B
Plaintext
Executable File

$ cargo test add
Compiling adder v0.1.0 (file:///projects/adder)
Finished test [unoptimized + debuginfo] target(s) in 0.61s
Running unittests src/lib.rs (target/debug/deps/adder-92948b65e88960b4)
running 2 tests
test tests::add_three_and_two ... ok
test tests::add_two_and_two ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out; finished in 0.00s