我应该只编写少量代码,只要使测试通过即可。
编写足够的代码,使测试通过。
这段代码允许测试通过,但是再考虑一下,它十分糟糕!
This code allows the test to pass, but upon reflection, it's awful!
It's looking at the end test. It's looking at the kinds of conditions you're going to put in.
写代码的方法了,也就是通过讨论终结测试,通过讨论放入的条件。
应用推荐