trpl-zh-cn/listings/ch11-writing-automated-tests/no-listing-12-shared-test-code-problem/tests/integration_test.rs

7 lines
79 B
Rust

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