def test_part2():
  with open(jsabacusframework.input_file) as f:
    data = f.read()
  expected = 65402
  assert jsabacusframework.part2(data) == expected
def test_part2_example_4():
  data = '[1,"red",5]'
  assert jsabacusframework.part2(data) == 6
def test_part2_example_2():
  data = '[1,{"c":"red","b":2},3]'
  assert jsabacusframework.part2(data) == 4
def test_part2_example_3():
  data = '{"d":"red","e":[1,2,3,4],"f":5}'
  assert jsabacusframework.part2(data) == 0
def test_part2_example_1():
  data = '[1,2,3]'
  assert jsabacusframework.part2(data) == 6