From 59215f04c0e525d99b9e178a94d904c96d86ad35 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 25 Mar 2025 15:43:12 -0400 Subject: [PATCH] bitboard: split test --- src/repr/bitboard.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/repr/bitboard.rs b/src/repr/bitboard.rs index ae760bd..865116a 100644 --- a/src/repr/bitboard.rs +++ b/src/repr/bitboard.rs @@ -118,14 +118,19 @@ mod test { use super::*; #[test] - fn set_and_get() { - let mut b = BitBoard::new(); + fn init_empty() { + let b = BitBoard::new(); for c in 0..Board::AREA.0 { assert!( !b.get(CoordPair(c)), "A just-initalized BitBoard should be completely empty" ) } + } + + #[test] + fn set_and_get() { + let mut b = BitBoard::new(); assert!(!b.get((2, 4).into())); b.set((2, 4).into(), true);