0;! if ((x>0) && (y>0)) {! z = x;! }! sideEffect(z);! return z;! } int foo (int x, int y)! {! int z = 0;! if ((x>0) && (y>0)) {! z = x;! }! sideEffect(z);! return z;! } n Either missing a test to prove the removed code is needed n Or the removed code is truly Redundant
write any production code unless it is to make a failing unit test pass. n You are not allowed to write any more of a unit test than is sufficient to fail; and compilation failures are failures. n You are not allowed to write any more production code than is sufficient to pass the one failing unit test.