1
Fork 0
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:
Steffo 2023-01-30 18:35:40 +01:00
parent e91e89cab1
commit 4255ca0d7a
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -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)