Initial commit

This commit is contained in:
Connor Johnstone
2023-03-09 15:35:49 -07:00
commit 1bdfc023e5
3 changed files with 24 additions and 0 deletions

14
src/lib.rs Normal file
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);
}
}