card: new -> make_joker and make_playing-card

Always better to be explicit with our constructor names.
This commit is contained in:
2026-04-03 02:07:02 +01:00
committed by oreodave
parent f40596bc1d
commit 6119410496
3 changed files with 8 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ mod tests {
#[test]
fn new() {
// TEST: Jokers are not valid singles.
assert!(Single::new(Card::joker()).is_none());
assert!(Single::new(Card::make_joker()).is_none());
let deck = make_decks(1);
let singles: Vec<Option<Single>> =