I know it's test code but this is a little cryptic and I would not endorse it as a means of getting two arrays into a function. Why not have have a list of tuples [(expected_val, break_point), ..., (expected_val, None)] or two lists?