def test_part1_example_2():
  data = '{"a":2,"b":4}'
  assert jsabacusframework.part1(data) == 6
def test_part1_example_8():
  data = '{}'
  assert jsabacusframework.part1(data) == 0
def test_part1():
  with open(jsabacusframework.input_file) as f:
    data = f.read()
  expected = 111754
  assert jsabacusframework.part1(data) == expected
def test_part1_example_1():
  data = '[1,2,3]'
  assert jsabacusframework.part1(data) == 6
def test_part1_example_6():
  data = '[-1,{"a":1}]'
  assert jsabacusframework.part1(data) == 0
def test_part1_example_5():
  data = '{"a":[-1,1]}'
  assert jsabacusframework.part1(data) == 0
def test_part1_example_4():
  data = '{"a":{"b":4},"c":-1}'
  assert jsabacusframework.part1(data) == 3
def test_part1_example_3():
  data = '[[[3]]]'
  assert jsabacusframework.part1(data) == 3