def test_four_of_a_kind(): assert Yatzy.four_of_a_kind(3, 3, 3, 3, 5) == 12 assert Yatzy.four_of_a_kind(5, 5, 5, 4, 5) == 20 assert Yatzy.four_of_a_kind(3, 3, 3, 3, 3) == 12 assert Yatzy.four_of_a_kind(3, 3, 3, 2, 1) == 0 assert Yatzy.four_of_a_kind(1, 1, 3, 1, 1) == 4 assert Yatzy.four_of_a_kind(2, 2, 2, 5, 2) == 8 assert Yatzy.four_of_a_kind(3, 6, 6, 6, 6) == 24
def test_four_of_a_kind(): assert 17 == Yatzy.four_of_a_kind([3, 3, 3, 3, 5]) assert 24 == Yatzy.four_of_a_kind([5, 5, 5, 4, 5]) assert 15 == Yatzy.four_of_a_kind([3, 3, 3, 3, 3]) assert 0 == Yatzy.four_of_a_kind([3, 3, 3, 2, 1])