def test_ones(): assert Yatzy.ones(1, 2, 3, 4, 5) == 1 assert Yatzy.ones(1, 2, 1, 4, 5) == 2 assert Yatzy.ones(6, 2, 2, 4, 5) == 0 assert Yatzy.ones(1, 2, 1, 1, 1) == 4
def test_ones(): ### La suma de todos los UNOS ### assert 0 == Yatzy.ones(3, 3, 3, 4, 5) assert 5 == Yatzy.ones(1, 1, 1, 1, 1)
def test_ones(): ''' The player scores the sum of the dice that reads one ''' assert 0 == Yatzy.ones(3, 3, 3, 4, 5) assert 5 == Yatzy.ones(1, 1, 1, 1, 1)
def test_ones(): assert 0 == Yatzy.ones(6, 2, 2, 4, 5) assert 4 == Yatzy.ones(1, 2, 1, 1, 1)
def test_1s(): assert Yatzy.ones(1, 2, 3, 4, 5) == 1 assert 2 == Yatzy.ones(1, 2, 1, 4, 5) assert 0 == Yatzy.ones(6, 2, 2, 4, 5) assert 4 == Yatzy.ones(1, 2, 1, 1, 1)