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