mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-22 17:44:22 +00:00
Fix broken doctest
This commit is contained in:
parent
e91e89cab1
commit
4255ca0d7a
1 changed files with 2 additions and 2 deletions
|
@ -452,7 +452,7 @@ impl Deck {
|
|||
///
|
||||
/// let index: CardIndex = create_cardindex_from_wd();
|
||||
/// let deck: Deck = deck!("CECQCAQCA4AQIAYKAIAQGLRWAQAQECAPEUXAIAQDAEBQOCIBAIAQEMJYAA");
|
||||
/// assert_eq!(d.card_count(&index), 40);
|
||||
/// assert_eq!(deck.card_count(), 40);
|
||||
///
|
||||
pub fn card_count(&self) -> u32 {
|
||||
self.contents.values().sum()
|
||||
|
@ -472,7 +472,7 @@ impl Deck {
|
|||
///
|
||||
/// let index: CardIndex = create_cardindex_from_wd();
|
||||
/// let deck: Deck = deck!("CECQCAQCA4AQIAYKAIAQGLRWAQAQECAPEUXAIAQDAEBQOCIBAIAQEMJYAA");
|
||||
/// assert_eq!(d.champions_count(&index), 6);
|
||||
/// assert_eq!(deck.champions_count(&index), 6);
|
||||
/// ```
|
||||
pub fn champions_count(&self, cards: &CardIndex) -> u32 {
|
||||
self.champions(cards)
|
||||
|
|
Loading…
Reference in a new issue