Please don't, if you are up here, become complacent because a month from now we will have another test.
如果你考得不错的话,请不要自满,因为在一个月后我们将还有一次测试。
Thus far, for us it's been testing individual functions. Later in the term we'll talk about unit testing of classes.
至今为止,我们用到单元测试的地方,就是测试每个单独的方法,在后面我们会讲到类的单元测试。
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.
我说的是今天,我等会不会测试你,但是你可能会重视了,因为一个月之前,我们问了你关于一些测试的技能。
And then we're going to try a demo to see if we can convince ourselves that the kind of calculations we make work out perfectly, and we'll do a test up here about half way through class.
然后我们将会尝试演示去看看,是否可以确信我们能够很好的,做出这个类型的计算,我们将在课程中做一个测试。
Well, for our purposes, both are correct and we'll know how to figure this out on tests.
这个,对课堂而言,两种都正确,我们会在测试中明白原因的
Join the conversation, take a pop quiz, watch lectures you've missed and learn a lot more.
参与到我们的讨论中来,做一个小测试,查看遗漏的讲义,并学更多知识。
But before telling you about this let me sort of Go through some of the hypothesis that we have and That we are now testing about why the subject is Difficult and why these materials assembled what We have assembled them might be useful.
但是谈那之前我要说说,我们之前的一些假设,我们现在正在测试为什么这个学科很难,以及为什么我们整合这些资料是有用的,我们认为把它们整合起来或许有用。
So it's really a training ground for the final paper, and we have found that people don't succeed in the course in the final paper without the training they get in section discussion, which is why section participation is worth ten percent of your grade.
所以讨论课也是为期末测试而训练的一个基础部分,我们曾发现没有在讨论课上的训练学生是没法,通过期末考试的,这也是为什么讨论课,的出勤率占你们分数的百分之十的原因。
Besides that--okay,let's take a quiz first.
另外。。。让我们先进行一个小测试。
What that means is that we identify students who are going to take a big leap, intellectual leap forward in this coming year, a spurt forward in this coming year.
测试能让我们找出,将在新学年在学业上,取得巨大进步的学生,在新学年取得巨大进步。
What I'd like to do--and this will be the first time I've the clicker thing in the class so let's try out this little quiz and see how it works.
我想要--这是我第一次,在课上使用表决器,所以我们先做个小测试看看效果如何
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 that's basically trying to make sure our program has not regressed, as to say, gone backwards in how well it works. And so we always test it on everything.
这只是从根本上确保,我们的程序并没往后退,也就是说在可用性方面倒退了,因此我们在任何东西上,都要进行这样的测试。
And it's just gathering together the multiplications while counting down the exponent. And you can see it when we get down to the end test here, we're going to pop out of there and we're going to return the answer.
这个方法就是通过乘法,来一个一个的减小指数,可以看到,最后面的结果测试,我们会在这里退出,然后返回答案。
We'll test our hypothesis, or at least examine it again see if it's, in some sense, repeatable.
我们要测试我们的假设或者至少再检查一下,让我们看看它的结果是不是可以接受的。
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.
好的,我们来测试一些,我们实际上懂了,多少光电效应的东西,在我们做测试之前,我们先算一下我们能预知什么,这样我们做的测试会很有意义,并且也知道我们是否成功了。
Is there a limit to the type of calculator one can use during the test?
我们能在测试中使用的计算器,有没有什么限制?
OK, not a quiz for points or anything, don't freak out, but I do want you to tell me who these people are. So, what about this person?
我们的课程将由一个小测试开始,别紧张,这不记录分数的,但我希望你们能告诉我这些人是谁?
So, on the day of the test, we will have a shadow rooms.
在测试的那天,我们会去到幽静的教室。
Let's try it again. Test bubble sort.
让我们再试一试吧,测试下冒泡排序。
Another little pop quiz here, and these aren't trick questions necessarily, but if you had to guess what the bigger problem was in the developing world, so let's not just say outside the U.S.
我们再做一个小测试,这不是什么难题,你们猜猜,发展中国家面临最大的问题是什么,我们所说的不是美国以外的国家
And check the answers, and say yeah that's what we expected. But it also involves reasoning. About why that's an appropriate set of inputs to test it on it.
然后说对,这就是我想要的结果,但是它跟推理也有关系,表现在关于为什么这是一个,测试我们程序的适合的输入集。
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.
我们来检查检查,我写了一个小测试脚本,我写这个脚本来测试单元排序,它能够打印出每一轮结束后,链表的是什么样子的。
Testing and reasoning. Testing, we run our program on some set of inputs.
测试就是,我们输入一些信息,并且运行我们的程序,然后查看答案。
OK. Today, for the rest of the lecture, we're going to take a break from the topic of algorithms, and computation, and things of the sort. And do something pretty pragmatic.
好,今天剩下的时间里,我们不再讲算法,计算和排序这些话题了,我们会做一些非常实用的事,我们主要的讲讲测试。
So we'll see that, OK, we passed the first smoke test.
所以我们会看到,我们通过了第一个发烟测试。
Well, let's try it. Let's try a little test. OK?
不过我们还是来试试吧,做个小测试怎么样?
So let's assume we've run our test suite.
让我们假设已经运行了测试集。
As we do these little clicker poll things you can tell me if you find it helpful or not, then we can decide how to continue --whether to continue them in the future.
我们用表决器做这个小测试的同时,大家可以告诉我你们觉得这有没有帮助,然后我们再决定以后是否继续用
Here's another little quiz.
我们再做一个小测试
应用推荐