Add bitboard Rust library

This commit is contained in:
Eryn Wells 2023-12-19 10:32:26 -08:00
commit 8fd01e4f11
2 changed files with 22 additions and 0 deletions

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