Exemplo n.º 1
0
def test_isdistinct():
    assert isdistinct([1, 2, 3]) is True
    assert isdistinct([1, 2, 1]) is False

    assert isdistinct("Hello") is False
    assert isdistinct("World") is True

    assert isdistinct(iter([1, 2, 3])) is True
    assert isdistinct(iter([1, 2, 1])) is False
Exemplo n.º 2
0
def test_isdistinct():
    assert isdistinct([1, 2, 3]) == True
    assert isdistinct([1, 2, 1]) == False

    assert isdistinct("Hello") == False
    assert isdistinct("World") == True
Exemplo n.º 3
0
def test_isdistinct():
    assert isdistinct([1, 2, 3]) is True
    assert isdistinct([1, 2, 1]) is False

    assert isdistinct("Hello") is False
    assert isdistinct("World") is True