Пример #1
0
def test_part1_example_2():
  data = "(())"
  assert not_quite_lisp.part1(data) == 0
Пример #2
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
Пример #3
0
def test_part1_example_5():
  data = '))((((('
  assert not_quite_lisp.part1(data) == 3
Пример #4
0
def test_part1_example_7():
  data = ')())())'
  assert not_quite_lisp.part1(data) == -3
Пример #5
0
def test_part1_example_4():
  data = '(()(()('
  assert not_quite_lisp.part1(data) == 3