Exemplo n.º 1
0
def test_join_to_series_one() -> None:
    words = ["this"]
    assert join_to_series(words) == "this"
Exemplo n.º 2
0
def test_join_to_series_empty() -> None:
    words = []
    assert join_to_series(words) == ""
Exemplo n.º 3
0
def test_join_to_series_three_no_oxford_comma() -> None:
    words = ["this", "that", "the other"]
    assert join_to_series(words, oxford_comma=False) == "this, that and the other"
Exemplo n.º 4
0
def test_join_to_series_three_or() -> None:
    words = ["this", "that", "the other"]
    assert join_to_series(words, conjunction="or") == "this, that, or the other"
Exemplo n.º 5
0
def test_join_to_series_three() -> None:
    words = ["this", "that", "the other"]
    assert join_to_series(words) == "this, that, and the other"
Exemplo n.º 6
0
def test_join_to_series_two() -> None:
    words = ["this", "that"]
    assert join_to_series(words) == "this and that"