diff options
author | cel 🌸 <cel@blos.sm> | 2023-06-13 00:46:59 +0100 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2023-06-13 00:46:59 +0100 |
commit | 2b2306b57ca00dddee93f9accb5ac63381d117e7 (patch) | |
tree | 1172af839becc8112d5d900017ee06d877b7e07c /src/lib.rs | |
download | luz-2b2306b57ca00dddee93f9accb5ac63381d117e7.tar.gz luz-2b2306b57ca00dddee93f9accb5ac63381d117e7.tar.bz2 luz-2b2306b57ca00dddee93f9accb5ac63381d117e7.zip |
initial commit
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 16 |
1 files changed, 16 insertions, 0 deletions
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); + } +} |