Ejemplo n.º 1
0
def test_eight():
    assert python2.eight("Hello", 3) == "Ho"
    assert python2.eight("Chocolate", 3) == "Choate"
    assert python2.eight("Chocolate", 1) == "Choclate"
    assert python2.eight("Water", 1) == "Waer"
    assert python2.eight("Water", 5) == ""
Ejemplo n.º 2
0
def test_eight():
    assert python2.eight(1) == 1
    assert python2.eight(3) == 6
    assert python2.eight(4) == 24
    assert python2.eight(6) == 720
    assert python2.eight(8) == 40320