def test_part1_example_2(): data = "(())" assert not_quite_lisp.part1(data) == 0
def test_part1(): with open(not_quite_lisp.input_file) as f: data = f.read() expected = 138 assert not_quite_lisp.part1(data) == expected
def test_part1_example_5(): data = '))(((((' assert not_quite_lisp.part1(data) == 3
def test_part1_example_7(): data = ')())())' assert not_quite_lisp.part1(data) == -3
def test_part1_example_4(): data = '(()(()(' assert not_quite_lisp.part1(data) == 3