card: new -> make_joker and make_playing-card
Always better to be explicit with our constructor names.
This commit is contained in:
@@ -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>> =
|
||||
|
||||
Reference in New Issue
Block a user