示例#1
0
def test_2_brackets():
    output = laurelin.balanced_brackets("[[({}[])")
    assert output == False
示例#2
0
def test_9_brackets():
    output = laurelin.balanced_brackets("[///\\|||]")
    assert output == True
示例#3
0
def test_10_brackets():
    output = laurelin.balanced_brackets("!@#$%%^&*(;',.<>?/\|~`'")
    assert output == False
示例#4
0
def test_7_brackets():
    output = laurelin.balanced_brackets("no brackets at all")
    assert output == True
示例#5
0
def test_8_brackets():
    output = laurelin.balanced_brackets(">>> (<> are not brackets) >>>")
    assert output == True
示例#6
0
def test_1_brackets():
    output = laurelin.balanced_brackets("[[]]({}[])")
    assert output == True
示例#7
0
def test_6_brackets():
    output = laurelin.balanced_brackets("([{(((")
    assert output == False
示例#8
0
def test_5_brackets():
    output = laurelin.balanced_brackets(")]})]}")
    assert output == False
示例#9
0
def test_4_brackets():
    output = laurelin.balanced_brackets("(5 * 3) + [10 / {2}]")
    assert output == True
示例#10
0
def test_3_brackets():
    output = laurelin.balanced_brackets("")
    assert output == True