fixup tests

This commit is contained in:
c0repwn3r 2023-02-15 13:55:47 -05:00
parent bb2b2b02f8
commit 7c63ff83d0
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ impl BoardfieldOps for Boardfield {
// bf2: 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
assert!(boardloc <= 63, "boardloc out of range");
assert!(boardloc > 0, "boardloc out of range");
assert!(boardloc >= 0, "boardloc out of range");
let field = self[(boardloc / 2) as usize];
let shift = 4 * (boardloc % 2);
@ -103,7 +103,7 @@ impl BoardfieldOps for Boardfield {
#[allow(clippy::cast_sign_loss)]
fn set_pos(&mut self, boardloc: isize, piece: u8) {
assert!(boardloc <= 63, "boardloc out of range {boardloc}");
assert!(boardloc > 0, "boardloc out of range {boardloc}");
assert!(boardloc >= 0, "boardloc out of range {boardloc}");
let field = self[(boardloc / 2) as usize];
let shift = 4 * (boardloc % 2);