16 lines
251 B
Rust
16 lines
251 B
Rust
// can run with just `cargo test` or
|
|
// $ cargo test --test integration_test
|
|
// for this file specifically
|
|
|
|
use adder::add_two;
|
|
|
|
mod common;
|
|
|
|
#[test]
|
|
fn it_adds_two() {
|
|
common::setup();
|
|
|
|
let result = add_two(2);
|
|
assert_eq!(result, 4);
|
|
}
|