From 2b2306b57ca00dddee93f9accb5ac63381d117e7 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 13 Jun 2023 00:46:59 +0100 Subject: initial commit --- src/lib.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/lib.rs (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..b2ce0b2 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,16 @@ +mod jid; + +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); + } +} -- cgit