Пример #1
0
def test_binary_even():
    """String must be a binary number and be even."""

    assert v.binary_even("10")
    assert v.binary_even("1110100010")
    assert not v.binary_even("1011")
Пример #2
0
def test_binary_even():
    """String must be a binary number and be even."""

    assert v.binary_even("10")
    assert v.binary_even("1110100010")
    assert not v.binary_even("1011")
Пример #3
0
def test_binary_even():
    assert v.binary_even("10")
    assert v.binary_even("1110100010")
    assert not v.binary_even("1011")