XP的测试-编码循环!翻译高手请指教,谁能帮我说清楚此段文章?
Write one test.
.Compile the test. It should fail to com-pile,
as you haven’t yet implemented the
code that the test calls.
.Implement just enough to compile.//怎么翻译?
(Refactor first if necessary.)
.Run the test and see it fail.
.Implement just enough to make the test
pass.
.Run the test and see it pass
.Refactor for clarity and “ once and only
once.”
.Repeat from the top..15