trpl-zh-cn/listings/ch11-writing-automated-tests/output-only-05-single-integration/tests/integration_test.rs

7 lines
79 B
Rust

use adder;
#[test]
fn it_adds_two() {
assert_eq!(4, adder::add_two(2));
}