test the function that if the starting line and the ending line are the same
test the function that if the starting line and the ending line are different
refinement