This commit is contained in:
Ivan Akimov 2023-07-17 17:15:56 -05:00
parent 28552c080f
commit 42256831d2
4 changed files with 18 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
target
Cargo.lock

6
Cargo.toml Normal file
View File

@ -0,0 +1,6 @@
[package]
name = "sqids"
version = "0.1.0"
edition = "2021"
[dependencies]

3
src/lib.rs Normal file
View File

@ -0,0 +1,3 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}

7
tests/simple.rs Normal file
View File

@ -0,0 +1,7 @@
use sqids::add;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}