Example #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")
Example #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")
def test_binary_even():
    assert v.binary_even("10")
    assert v.binary_even("1110100010")
    assert not v.binary_even("1011")