Beispiel #1
0
def test_middle():
    assert validation('({[(])})') == False
Beispiel #2
0
def test_open_close():
    assert validation('()') == True
Beispiel #3
0
def test_no_close_two():
    assert validation('(({[[()]]})') == False
Beispiel #4
0
def test_words():
    assert validation('(abc[123{lmnop[hello_world(3)[4]]}])') == True
Beispiel #5
0
def test_null():
    assert validation('') == True
Beispiel #6
0
def test_open():
    assert validation('({[') == False
Beispiel #7
0
def test_no_close():
    assert validation('({[]})(') == False
Beispiel #8
0
def test_open_close_three():
    assert validation('({[]})') == True
Beispiel #9
0
def test_open_close_two():
    assert validation('{]') == False
    assert validation('{)') == False
    assert validation('[)') == False
    assert validation('[}') == False