add archive tests

This commit is contained in:
2023-05-09 14:57:10 +02:00
parent 4d048e77ee
commit 09a1e9ac0b
11 changed files with 184 additions and 2 deletions

View File

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

14
rust/lightwave/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);
}
}