[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
|
@ -93,7 +93,7 @@ mod tests {
|
|||
use std::collections::HashSet;
|
||||
|
||||
fn square_at(sq: &str) -> Square {
|
||||
Square::from_algebraic_string(sq).expect(sq)
|
||||
Square::from_algebraic_str(sq).expect(sq)
|
||||
}
|
||||
|
||||
fn place_piece_in_position(pos: &mut Position, sq: &str, piece: Piece) {
|
||||
|
@ -110,7 +110,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn one() {
|
||||
let sq = Square::from_algebraic_string("e4").expect("e4");
|
||||
let sq = Square::from_algebraic_str("e4").expect("e4");
|
||||
|
||||
let mut pos = Position::empty();
|
||||
pos.place_piece(&Piece::new(Color::White, Shape::Queen), &sq)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue