コード例 #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