aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-08-22 12:13:05 -0700
committerPinapelz <yukais@pinapelz.com>2024-08-22 12:13:05 -0700
commitec3293d22ced4406e4f7304b0589ec5fc967b099 (patch)
tree631f47fe3f28aa75e1b41c56ab131fd5dd987201 /src/lib.rs
Initial commit. Implement EorzeanTime
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
new file mode 100644
index 0000000..b93cf3f
--- /dev/null
+++ b/src/lib.rs
@@ -0,0 +1,14 @@
+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);
+ }
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage