def test_nested_pass(self): testlist = [1, 2, 3, [4, 5], [6], []] expected = [1, 2, 3, 4, 5, 6] result = arrayflatten.nested(testlist) self.assertEqual(expected, result)
def test_nested_empty_target_pass(self): testlist = [[], [[]]] expected = [] result = arrayflatten.nested(testlist) self.assertEqual(expected, result)