Why? Because that block identifies a set of things that I'm going to do if the test is true.
为什么呢?这是因为这一块指令,指定了一系列的要进行的操作,如果测试为真的话。
You just need to pass their test, and then you can practice as an attorney.
你只要通过他们的测试,然后你就可以当律师了。
A test suite that will make us feel good about things. For now, I just want you to be aware that you're always doing this balancing act.
测试集呢?一个测试集会让我们的工作,变的舒服多了,现在,我只是想让,大家意识到你们经常需要做这种协调工作。
And then it has a beautiful illustration of psychological testing, so I'll give you them quickly one after the other.
也很好地解释了一个心理测试,我会很快为大家逐一讲解。
Then they test you to make sure that you have adequate protection, and some people need an additional shot after that.
然后医生会检测以确定你已获得了保护,有些人在测试完后需要再打一针
Now the part of the essay just prior to this explains that he gave this little quiz that you see to some college students when he was giving a lecture.
在先前已经解释了这篇文章的一部分,他把你们所看到这个小测试在他的讲座上,给一些大学生做了。
What I am talking about today, I will not be testing you, but maybe you might pay attention because about a month from now we will ask you a few skill testing questions about it.
我说的是今天,我等会不会测试你,但是你可能会重视了,因为一个月之前,我们问了你关于一些测试的技能。
All right. So let's test what we, in fact, know about the photoelectric effect, and before we do that actually, we're going to calculate what we would predict, so when we do the demo it will be meaningful and we can tell whether we're successful or not.
好的,我们来测试一些,我们实际上懂了,多少光电效应的东西,在我们做测试之前,我们先算一下我们能预知什么,这样我们做的测试会很有意义,并且也知道我们是否成功了。
If at the end of the semester you take a three-hour exam in a closed environment and you answer everything, I don't care what you did in your homework or your Midterm.
如果在学期末的时候,你能在独立地完成3小时的考试,答出所有题目,那我就不会计较平时作业和期中测试了
For instance in the past, we had that silly little program for computing the average of some quizzes and it was actually a pretty bad implementation because I had essentially hard coded in the number of quizzes.
比如在以前,我们做了一个,计算平均数的程序,这是一个相当挫的实现,因为我硬编码了测试的数字。
And I end up going back and doing unit testing anyway, to try and figure out why it doesn't work. So over the years, I've just convinced myself I might as well start where I'm going to end up.
第一次从来不会正常运行,因此无论如何我还要回头去做单元测试,找找哪儿出错了,因此经过这么多年,我已经说服自己既然一定要做单元测试,那么还是一开始就做最好了。
And that's because it's easier to test small things than big things. And it's easier to debug small things than big things.
这是因为对小一点的对象,进行测试比对大一点的对象进行测,试要简单多了,调试也是如此。
So, if you've worked the homework problems, you will do the homework quiz handily.
如果你已经做了作业上的问题,那个测试就小菜一碟。
How many people have finished their things right now?
有多少同学做完测试了?
Otherwise, we don't have enough seats, or we don't have enough test papers and so on. By the way, on the tests, you will be getting tomorrow these handouts that you can use in working the homeworks , so when you are taking the test, you are allowed to bring in the copy of the periodic table of the elements.
否则,我们就没有足够的座位,或者没有足够的考试卷子,顺便说一下,在测试当中,你们明天会拿到这些讲义,就可以用来做作业了,当你们在做测试时,你们可以带来,元素周期表。
And then notice the structure, WHILE I got a keyword WHILE, there's that color identifying it, and in parentheses I have a test.
然后注意这个结构,有一个关键词,颜色就可以区分出它了,然后括号内是个测试。
It's looking at the end test. It's looking at the kinds of conditions you're going to put in.
写代码的方法了,也就是通过讨论终结测试,通过讨论放入的条件。
Let's check it out. I've written a little bit of a test script here, so if we test cell sort, and I've written this so that it's going to print out what the list is at the end of each round, OK.
我们来检查检查,我写了一个小测试脚本,我写这个脚本来测试单元排序,它能够打印出每一轮结束后,链表的是什么样子的。
All right, so we've tested it, and we haven't tested it yet we have tested it but, we haven't seen it, well, you know what I'm going to do?
好,我保存下,这有点儿烦,不过能让字体更大点儿,好,我们已经得到了要比较的对象了,但是还没对它们进行比较测试?
So we'll see that, OK, we passed the first smoke test.
所以我们会看到,我们通过了第一个发烟测试。
It's Bush economics. OK? I know.
啊,测试答案为否了,因此我返回5,对,没错。
So let's assume we've run our test suite.
让我们假设已经运行了测试集。
I now have multiple tests.
我现在有了很多测试比较。
I have the freedom to pass that person because I like the trend. Suppose I have somebody else who came here with two years of chemistry in high school, got a 95 on the first test, 70 on the second test, failed the third test, failed the final, has an aggregate score of 48.
我能够选择让那人通过,因为我喜欢他的进步,假设另一个同学,学了2年的化学在高中,第一次测试得到95分,第二次70分,第三次没通过,期末考也没通过。
People tend to want to rush in and do this right away.
人们通常都很着急的去做集成测试,这通常来说是个犯了个大错。
Yeah, I've still got a binding for z and I'm giving it the same test, but notice now I've got the two same commands but they have different indentation.
对,我还是对z进行了绑定,我还是要对它进行同样的测试,但是请注意现在我有了两个同样的命令,但是它们有不同的缩进。
And the bug was in my thinking, I did not look for all of the tests.
当然我已经知道这个bug了,就没去做所有的测试。
And, sad to say, at least one of our tests produced an output that we were unhappy with.
很不幸的是,至少一个测试输出我们,是不满意的,它花费了太长时间。
Well, let's make predictions that can be put to the test.
好了,让我们做些能够被测试出的预测。
This child on the right died during testing.
右边的这个孩子在测试时死掉了
应用推荐