Skip to content

Commit

Permalink
Fix doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
t4ccer committed Nov 11, 2023
1 parent 166cdf2 commit f3cdc82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/grid/small_bit_grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ where
/// ```
/// use cgt::grid::small_bit_grid::SmallBitGrid;
///
/// assert_eq!(&format!("{}", SmallBitGrid::empty(2, 3).unwrap()), "..|..|..");
/// assert_eq!(&format!("{}", SmallBitGrid::<bool>::empty(2, 3).unwrap()), "..|..|..");
/// ```
///
/// # Errors
Expand Down Expand Up @@ -128,7 +128,7 @@ where
/// ```
/// use cgt::grid::small_bit_grid::SmallBitGrid;
///
/// assert_eq!(&format!("{}", SmallBitGrid::from_number(3, 2, 0b101110).unwrap()), ".##|#.#");
/// assert_eq!(&format!("{}", SmallBitGrid::<bool>::from_number(3, 2, 0b101110).unwrap()), ".##|#.#");
/// ```
///
/// # Errors
Expand All @@ -154,7 +154,7 @@ where
/// ```
/// use cgt::grid::small_bit_grid::SmallBitGrid;
///
/// SmallBitGrid::from_arr(2, 3, &[true, true, false, false, false, true]).unwrap();
/// SmallBitGrid::<bool>::from_arr(2, 3, &[true, true, false, false, false, true]).unwrap();
/// ```
///
/// # Errors
Expand Down
8 changes: 4 additions & 4 deletions src/short/partizan/games/domineering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ where
/// use cgt::short::partizan::games::domineering::Domineering;
/// use std::str::FromStr;
///
/// let position = Domineering::from_str("###|.#.|##.").unwrap();
/// let position: Domineering = Domineering::from_str("###|.#.|##.").unwrap();
/// assert_eq!(&format!("{}", position.move_top_left()), ".#.|##.");
/// ```
// Panic at `Self::empty(minimized_width, minimized_height).unwrap();` is unreachable
Expand Down Expand Up @@ -346,7 +346,7 @@ where
/// use crate::cgt::short::partizan::partizan_game::PartizanGame;
/// use std::str::FromStr;
///
/// let position = Domineering::from_str("..#|.#.|##.").unwrap();
/// let position: Domineering = Domineering::from_str("..#|.#.|##.").unwrap();
/// assert_eq!(
/// position.left_moves(),
/// vec![
Expand All @@ -371,7 +371,7 @@ where
/// use cgt::short::partizan::{partizan_game::PartizanGame, games::domineering::Domineering};
/// use std::str::FromStr;
///
/// let position = Domineering::from_str("..#|.#.|##.").unwrap();
/// let position: Domineering = Domineering::from_str("..#|.#.|##.").unwrap();
/// assert_eq!(
/// position.right_moves(),
/// vec![Domineering::from_str(".#.|##.").unwrap(),]
Expand All @@ -392,7 +392,7 @@ where
/// use cgt::short::partizan::{partizan_game::PartizanGame, games::domineering::Domineering};
/// use std::str::FromStr;
///
/// let position = Domineering::from_str("..#|.#.|##.").unwrap();
/// let position: Domineering = Domineering::from_str("..#|.#.|##.").unwrap();
/// assert_eq!(
/// position.decompositions(),
/// vec![
Expand Down

0 comments on commit f3cdc82

Please sign in to comment.