From 797606785e7c28115c77638ff961ae0beeeda76e Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Thu, 25 Apr 2024 09:32:27 -0700 Subject: [PATCH] Empty board package --- Cargo.toml | 1 + board/Cargo.toml | 8 ++++++++ board/src/lib.rs | 14 ++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 board/Cargo.toml create mode 100644 board/src/lib.rs diff --git a/Cargo.toml b/Cargo.toml index 490ec43..70558c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,7 @@ [workspace] members = [ "bitboard", + "board", "core", "explorer", "moves", diff --git a/board/Cargo.toml b/board/Cargo.toml new file mode 100644 index 0000000..6b600a9 --- /dev/null +++ b/board/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "board" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/board/src/lib.rs b/board/src/lib.rs new file mode 100644 index 0000000..7d12d9a --- /dev/null +++ b/board/src/lib.rs @@ -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); + } +}