bingus, tabs

This commit is contained in:
Breval Ferrari 2024-05-01 09:36:28 +02:00
parent 9103cd1e8b
commit 409ee2f121
No known key found for this signature in database
5 changed files with 4051 additions and 4 deletions

8
bingus/Cargo.toml Normal file
View file

@ -0,0 +1,8 @@
[package]
name = "bingus"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

14
bingus/src/lib.rs Normal file
View file

@ -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);
}
}