コード例 #1
0
def test_twos():
    assert 4 == Yatzy.twos(1, 2, 2, 4, 3)
コード例 #2
0
ファイル: test_yatzy.py プロジェクト: sewerai-org/yatzy-kata
def test_2s():
    assert 4 == Yatzy.twos(1, 2, 3, 2, 6)
    assert 10 == Yatzy.twos(2, 2, 2, 2, 2)
コード例 #3
0
def test_twos():
    assert 0 == Yatzy.twos(3, 3, 3, 4, 5)
    assert 4 == Yatzy.twos(2, 3, 2, 5, 1)
コード例 #4
0
def test_twos():
    assert 4 == Yatzy.twos(2, 3, 2, 5, 1)
    assert 2 == Yatzy.twos(1, 1, 2, 4, 4)
    assert 0 == Yatzy.twos(3, 3, 3, 4, 5)
コード例 #5
0
def test_twos():
    assert 4 == Yatzy.twos(2, 4, 6, 5, 2)
    assert 0 == Yatzy.twos(4, 5, 6, 7, 6)
    assert 10 == Yatzy.twos(2, 2, 2, 2, 2)
コード例 #6
0
def test_twos():  #suma todos los doses (el valor, no la cuenta)
    assert Yatzy.twos(1, 2, 3, 2, 6) == 4
    assert Yatzy.twos(2, 2, 2, 2, 2) == 10
    assert Yatzy.twos(1, 6, 3, 6, 6) == 0
コード例 #7
0
ファイル: test_yatzy.py プロジェクト: gboned/Refactorizar
def test_twos():
    assert Yatzy.twos(1, 2, 3, 2, 6) == 4
    assert Yatzy.twos(2, 2, 2, 2, 2) == 10
コード例 #8
0
def test_twos():
    ### La suma de todos los DOSES ###
    assert 0 == Yatzy.twos(3, 3, 3, 4, 5)
    assert 4 == Yatzy.twos(2, 3, 2, 5, 1)
コード例 #9
0
def test_twos():
    assert 0 == Yatzy.twos(1, 4, 3, 5, 6)
    assert 10 == Yatzy.twos(2, 2, 2, 2, 2)
コード例 #10
0
def test_twos():
    '''
    The player scores the sum of the dice that reads two
    '''
    assert 0 == Yatzy.twos(3, 3, 3, 4, 5)
    assert 4 == Yatzy.twos(2, 3, 2, 5, 1)
コード例 #11
0
def test_2s():
    assert 4 == Yatzy.twos(1, 2, 3, 2, 6)
    assert 10 == Yatzy.twos(2, 2, 2, 2, 2)