Cargo init

This commit is contained in:
2026-01-31 11:41:10 +01:00
parent 8b544c8ecf
commit f468f06899
4 changed files with 32 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}