This commit is contained in:
Christoph Brandau
2025-11-15 16:33:47 +01:00
parent 66f7710d16
commit 53291d0735
4 changed files with 28 additions and 18 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);
}
}