コード例 #1
0
def test_1():
    assert operacoes.match("+(a, b)", "a") == True
コード例 #2
0
def test_14():
    assert operacoes.match('.(*(+(*(.(a,b)),c)), +(*(.(a,b)),c))',
                           'cccccabab') == True
コード例 #3
0
def test_15():
    assert operacoes.match(".(*(+(z, .(a,z))), +(e,a))", "zzzazazazza") == True
コード例 #4
0
def test_12():
    assert operacoes.match(".(*(1), *(.(.(0,*(1)), .(0,*(1)))))",
                           "1100") == True
コード例 #5
0
def test_13():
    assert operacoes.match(".(*(+(1, .(0,1))), +(e,0))", "11101010110") == True
コード例 #6
0
def test_10():
    assert operacoes.match(".(.(*(+(a,b)), .(a,.(b,.(b,a)))), *(+(a,b)))",
                           "baabbaba") == True
コード例 #7
0
def test_11():
    assert operacoes.match(".(.(0,*(+(0,1))),1)", "0001010") == False
コード例 #8
0
def test_0():
    assert operacoes.match("a", "a") == True
コード例 #9
0
def test_9():
    assert operacoes.match('.(*(+(a,b)), *(+(+(a,b),c)))',
                           'ababababbabacababacbacb') == True
コード例 #10
0
def test_8():
    assert operacoes.match("*(+(a, b))", "abababa") == True
コード例 #11
0
def test_5():
    assert operacoes.match("*(+(a, b))", "aaa") == True
コード例 #12
0
def test_3():
    assert operacoes.match(".(a, b)", "ab") == True