kubi/kubi-shared/src/lib.rs

15 lines
216 B
Rust
Raw Normal View History

2023-01-29 18:46:22 -06:00
pub fn add(left: usize, right: usize) -> usize {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}