Ejemplo n.º 1
0
def test_oxfordize_list():
    assert oxfordize_list([]) == ''
    assert oxfordize_list(['A']) == 'A'
    assert oxfordize_list(['A', 'B']) == 'A and B'
    assert oxfordize_list(['A', 'B', 'C']) == 'A, B, and C'
    assert oxfordize_list(['A', 'B', 'C', 'D']) == 'A, B, C, and D'
Ejemplo n.º 2
0
def test_oxfordize_list():
    assert oxfordize_list([]) == ""
    assert oxfordize_list(["A"]) == "A"
    assert oxfordize_list(["A", "B"]) == "A and B"
    assert oxfordize_list(["A", "B", "C"]) == "A, B, and C"
    assert oxfordize_list(["A", "B", "C", "D"]) == "A, B, C, and D"
Ejemplo n.º 3
0
def test_oxfordize_list():
    assert oxfordize_list([]) == ''
    assert oxfordize_list(['A']) == 'A'
    assert oxfordize_list(['A', 'B']) == 'A and B'
    assert oxfordize_list(['A', 'B', 'C']) == 'A, B, and C'
    assert oxfordize_list(['A', 'B', 'C', 'D']) == 'A, B, C, and D'