nixgen/src/lib.rs
2023-07-06 02:04:42 +00:00

15 lines
216 B
Rust

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);
}
}