write sth on a test 在考试中写
Write code before you write a test.
在编写测试前编写代码。
Before you start fixing it, write a test.
修复它之前,首先编写一个测试。
Just write a test and get it to pass.
仅仅编写测试,使它通过。
Now, I know you've had all this bonding in the orientation period, but I think that it's much better when you write a test for there to be some solid state defects known as vacancies in between the various people.
现在,我知道你们关系很融洽,在互相介绍的时间里,但是我想这样会更好,当你们在一起做一个测试,成为固体化学的不良产品,成为众多人当中的缺位。
And, following a test, a lot of people write in pencil: don't try to erase something and bring it back and say that, oh, actually, this is what I had because we look at that and go, this is perfect.
还有,在测试的时候,很多人用铅笔:,不要试图擦掉什么,把它带回,说,事实上,这是我的,因为我们看了一下就走了,这很完美。
First one, when I write a piece of code, especially code that has branches in it, when I design test cases for that piece of code, I should try and have a specific test case for each possible path through the code.
第一点,当我们写代码的时候,尤其是一些含有分支语句的代码的时候,当我为这些代码,设计测试用例的时候,我应该为每一个可能的程序路径,都设计一个特别的用例。
应用推荐