summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-06-13 00:46:59 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2023-06-13 00:46:59 +0100
commit2b2306b57ca00dddee93f9accb5ac63381d117e7 (patch)
tree1172af839becc8112d5d900017ee06d877b7e07c /src/lib.rs
downloadluz-2b2306b57ca00dddee93f9accb5ac63381d117e7.tar.gz
luz-2b2306b57ca00dddee93f9accb5ac63381d117e7.tar.bz2
luz-2b2306b57ca00dddee93f9accb5ac63381d117e7.zip
initial commit
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs16
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);
+ }
+}