get ready to split into package

This commit is contained in:
Bel LaPointe
2023-12-19 21:46:02 -05:00
parent 11b5091872
commit 2883830dbe
6 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
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);
}
}