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

7 lines
79 B
Rust
Raw Normal View History

2022-02-06 16:43:51 +08:00
use adder;
#[test]
fn it_adds_two() {
assert_eq!(4, adder::add_two(2));
}