What LanX is saying is : since you are now sorting the output of twosum as a part of your "is_deeply" compare, you no longer need to duplicate tests , and you can revert to your original set of tests that have the results in increasing-index order.
"If you had better tools, you could more effectively demonstrate your total incompetence."
Comment on Re^5: LeetCode Problem #1 - Two Sum - Improve and/or discuss.