[board] Rename from_algebraic_string → from_algebraic_str
This commit is contained in:
parent
758a3d95fc
commit
9d0761f8c6
4 changed files with 15 additions and 15 deletions
|
@ -163,10 +163,10 @@ mod tests {
|
|||
fn has_piece_at() {
|
||||
let bb = BitBoard(0b1001100);
|
||||
|
||||
let c1 = Square::from_algebraic_string("c1").expect("Unable to get square for 'c1'");
|
||||
let c1 = Square::from_algebraic_str("c1").expect("Unable to get square for 'c1'");
|
||||
assert!(bb.has_piece_at(&c1));
|
||||
|
||||
let b1 = Square::from_algebraic_string("b1").expect("Unable to get square for 'b1'");
|
||||
let b1 = Square::from_algebraic_str("b1").expect("Unable to get square for 'b1'");
|
||||
assert!(!bb.has_piece_at(&b1));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue