Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
add eggstrain
Browse files Browse the repository at this point in the history
  • Loading branch information
connortsui20 committed Feb 1, 2024
1 parent 240dd11 commit 74c2ecc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion name_tbd/Cargo.toml → eggstrain/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "name_tbd"
name = "eggstrain"
version = "0.1.0"
edition = "2021"

Expand Down
14 changes: 14 additions & 0 deletions eggstrain/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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);
}
}
3 changes: 0 additions & 3 deletions name_tbd/src/main.rs

This file was deleted.

0 comments on commit 74c2ecc

Please sign in to comment.