示例#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