Example #1
0
def test_my_grammar_8():
    cur_word = "a=a*b"

    t = False

    try:
        t = RDParser.parse(cur_word)
    except Exception as e:
        _ = e

    assert not t
Example #2
0
def test_my_grammar_7():
    cur_word = "bc=ac+(af*('1010/b)+'111)-\"10;"

    t = False

    try:
        t = RDParser.parse(cur_word)
    except Exception as e:
        _ = e

    assert t
Example #3
0
def test_my_grammar_6():
    cur_word = "a=a;b=b;c=c;d=!!!d;e=#101010100101010;"

    t = False

    try:
        t = RDParser.parse(cur_word)
    except Exception as e:
        _ = e

    assert t
Example #4
0
def test_my_grammar_5():
    cur_word = "a=a*!b;b=c+d;"

    t = False

    try:
        t = RDParser.parse(cur_word)
    except Exception as e:
        _ = e

    assert t
Example #5
0
def test_my_grammar_3():
    cur_word = "a=b*(\"1/cd)%#1010;"

    t = False

    try:
        t = RDParser.parse(cur_word)
    except Exception as e:
        _ = e

    assert t
Example #6
0
def test_my_grammar_2():
    cur_word = "a=b*('987654/cd);"

    t = False

    try:
        t = RDParser.parse(cur_word)
    except Exception as e:
        _ = e

    assert t