mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-23 12:52:20 +08:00
12 lines
141 B
Rust
12 lines
141 B
Rust
use adder::add_two;
|
|
|
|
mod common;
|
|
|
|
#[test]
|
|
fn it_adds_two() {
|
|
common::setup();
|
|
|
|
let result = add_two(2);
|
|
assert_eq!(result, 4);
|
|
}
|