trpl-zh-cn/listings/ch11-writing-automated-tests/listing-11-13/tests/integration_test.rs

7 lines
81 B
Rust

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