Should change to code be committed separately from corresonding change to test suite?
问题 Should a code change and the corresponding change to the test suite be made in one commit, or split into two? Consider the case of a bug fix which causes a small change in the expected output, forcing a minor change in the test suite. It is extremely convenient to have both changes in the same commit, since it makes it obvious to the reviewer exactly what is changed in the output. On the other hand, sometimes you might just want to view the diffs to the source, or the diffs to the expected