diff options
| author | hybrid <hybrid@hybridlabs.cc> | 2026-10-20 11:36:03 +0300 |
|---|---|---|
| committer | hybrid <hybrid@hybridlabs.cc> | 2026-10-20 11:36:03 +0300 |
| commit | 4898351a371ae8f5bffae715fc1f1c2e7a0cac7d (patch) | |
| tree | 27f742ebbfa63df843a566c05440dfa7a53f8d08 /libs/adder/tests/integration_test.rs | |
| parent | 256ad69edea8bb5eeff38e3f5fa1dcf6e990daf7 (diff) | |
| download | rust-book-4898351a371ae8f5bffae715fc1f1c2e7a0cac7d.tar.gz rust-book-4898351a371ae8f5bffae715fc1f1c2e7a0cac7d.tar.bz2 rust-book-4898351a371ae8f5bffae715fc1f1c2e7a0cac7d.zip | |
add: adder, poem
Diffstat (limited to 'libs/adder/tests/integration_test.rs')
| -rw-r--r-- | libs/adder/tests/integration_test.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/adder/tests/integration_test.rs b/libs/adder/tests/integration_test.rs new file mode 100644 index 0000000..d18b5b6 --- /dev/null +++ b/libs/adder/tests/integration_test.rs @@ -0,0 +1,11 @@ +use adder::add_two; + +mod common; + +#[test] +fn it_adds_two() { + common::setup(); + + let result = add_two(2); + assert_eq!(result, 4); +} |
