feat: move persistence to another file

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-10-02 22:02:03 +02:00
parent dc2ac94345
commit c3ab28a4de
4 changed files with 5 additions and 104 deletions

View File

@@ -1,14 +1 @@
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);
}
}