Compiling and linking with sword

This commit is contained in:
Greg Hellings
2025-02-24 15:59:24 -06:00
parent c8dfcc61e2
commit 1a6e51579b
9 changed files with 251 additions and 53 deletions
+1 -14
View File
@@ -1,14 +1 @@
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);
}
}
pub mod mgr;