Write just enough to get the test to pass.
编写足够的代码来确保测试通过。
Again, I wrote just enough code to get the test to pass.
再次重申,我只编写了通过测试所需的代码。
Then they write just enough code to get the test to pass.
然后他们编写足够的代码使之能通过测试。
This code allows the test to pass, but upon reflection, it's awful!
这段代码允许测试通过,但是再考虑一下,它十分糟糕!
The point is, it isn't difficult to get a test to pass coincidentally.
关键是碰巧通过一个测试并不困难。
There is no test to pass, no license to earn, no membership card to get.
没有考试需要通过,没有执照需要取得,没有会员卡需要得到。
Next, you write just enough code in order for the unit test to pass.
接下来,您编写能够通过这个单元测试的程序代码;
What if you only wrote enough code to get the test to pass, and no more?
如果您只编写足够通过测试的代码,而不写多余的代码会怎样?
Instead, write a test, then write just enough code to get that test to pass.
相反,您只需编写测试,然后编写足够的代码使其能通过测试。
Getting the test to pass should be simple and will help you to resist getting too fancy.
让测试通过应该很简单,并且会帮助您不至于变得太不切实际。
This is important because the class must shortly return another string for your test to pass.
这是十分重要的,因为该类必须简短地返回另一个字符串才能使测试通过。
Initiation: a test to pass a young mage from the ranks of apprentice to full responsibility within a Tradition.
启蒙:通过这种试练的年轻法师将从学徒等级晋升,开始承担传统宗派内部的完整职责。(就是正式成为一名传统宗派的法师。)
This means the Calc.parse method has to be adjusted just slightly to get this test to pass, as shown in Listing 8.
这意味着必须稍微调整Calc. parse方法,以便通过测试。
For all the feelings readers attach to stories, literature is a numbers game, and the test of time is extremely difficult to pass.
论及读者对这些故事的所有感受,文学是一个数字游戏,但很难经受住时间的考验。
The kid is doing his lessons carefully in order to pass the test.
为了通过考试,这个孩子正在认真地做功课。
Applicants must pass a written test, an audition and an interview and only the most promising students are accepted to study at these colleges and schools.
应试者必须通过笔试、试镜和面试,只有最有前途的学生才能进入这些院校学习。
I have this test case set up to pass its verification point.
我将这个测试用例设置为通过它的验证点。
God wants you to pass the test of temptation.
上帝希望你通过诱惑的考验。
And each proposes to Socrates a test that he will have to pass in order to prove the value of justice and the just life.
每一个建议对苏格拉底都是一次必需通过的测试,以证明,正义与公正人生的价值。
Write your test cases first, and write only enough code to make your test case pass.
首先编写测试用例,并且只编写足以让测试用例通过的代码。
None required students to pass an eighth-grade test before going to high school.
没有一个州要求学生在上高中之前必须通过八年级的考试。
Just write a test and get it to pass.
仅仅编写测试,使它通过。
You've got to pass the test tomorrow.
你要过明天的考试。
You’ve got to pass the test tomorrow.
你要过明天的考试。
I have to study very late to pass the test.
我为了通过考试,不得不学习到很晚。
He swam quickly enough to pass the test.
他游得真够快,可以通过测试。
I should write only enough code to make the test case pass.
我应该只编写少量代码,只要使测试通过即可。
This "write a test, write just enough code to get it to pass, rerun the test" approach is the xp development flow that you should experience every day.
这种“编写一个测试,编写足够的代码来使测试通过,重新进行测试”方法是您每天都在经历的XP开发流程。
Here's an example: Tuesday's build contains only the test cases that are supposed to pass on this build.
这里有一个实例:星期二的构建只包含打算在此构建上通过的测试用例。
Here's an example: Tuesday's build contains only the test cases that are supposed to pass on this build.
这里有一个实例:星期二的构建只包含打算在此构建上通过的测试用例。
应用推荐