When we find bugs, we write a test case to expose the bug and add it to the suite prior to fixing it.
当我们发现错误时,我们编写测试案例来找到错误并在修正此错误之前将其添加到套件中。
This week, we intend to put this theory to the test by asking you, our readers, to write a caption for this picture.
本周,我们打算请您,我们的读者朋友,为这张图片撰写一条标题以检验这一理论。
In particular, what if we decided we wanted to write a program that would test what happens when we run a program on itself as input.
特别是,如果把一个程序自身当作它的输入是会发生什么,我们需要编写一个怎忙的程序来测试它呢?
This week we intend to put this theory to the test by asking you, our readers, to write a caption for this picture.
本周,我们打算请您,我们的读者朋友,为这张图片撰写一条标题以检验这一理论。
On the other hand, the test suite we keep planning to write "soon" has been a major and noticeable gap; building more testing support earlier and using it more could have saved a lot of time.
另一方面,我们一直计划“不久以后”编写的测试套件存在一个重大且明显的差距;越早构建更多的测试支持,使用它节省的时间就越多。
Write a test that fails We selected the test that seemed the easiest to implement (although in this case they were all simple) and wrote it.
写一个失败的测试:我们选择了一个最容易实现的测试(虽然在这个例子中所有的都很简单)来实现。
Such requirements are cheap to write, but expensive to satisfy and to test. In making a proper evaluation, we need to understand.
这些需求写起来便宜,但满足和测试起来昂贵。
SWEs write a lot of test code including test driven design, unit tests and, as we explain in future posts, participate in the construction of small, medium and large tests.
他们编写大量的测试代码,包括测试驱动设计(test driven design)、单元测试以及其它我们将要在后文中提到的内容,他们参与各种规模的测试构建。
We need to write a conditional statement that will test what page is being viewed and define a variable based on the results of that test.
我们需要写一个条件语言来测试一下被浏览的网页,并且基于那个测试的结果来确定一个变数。
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.
还有,在测试的时候,很多人用铅笔:,不要试图擦掉什么,把它带回,说,事实上,这是我的,因为我们看了一下就走了,这很完美。
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.
还有,在测试的时候,很多人用铅笔:,不要试图擦掉什么,把它带回,说,事实上,这是我的,因为我们看了一下就走了,这很完美。
应用推荐