Skip to content

Commit

Permalink
MNEMONIC-779 create a init subproject for this module
Browse files Browse the repository at this point in the history
Signed-off-by: Katarina <katarinaking361@gmail.com>
  • Loading branch information
katarinaking authored and AI-Memory committed Jun 3, 2023
1 parent e834c0a commit 7dc520d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mnemonic-protocol/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "mnemonic-protocol"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
14 changes: 14 additions & 0 deletions mnemonic-protocol/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);
}
}

0 comments on commit 7dc520d

Please sign in to comment.