chore: 构建初始项目结构。

This commit is contained in:
徐涛
2026-05-07 09:27:04 +08:00
commit 4eb8d9511f
5 changed files with 383 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);
}
}