• And if the test is true, it will change the value of this program counter to point to some other place in the memory, some other point in that sequence of instructions, and you'll keep processing.

    如果测试结果为真,会改变程序计数器的结果去,指向记忆存储器里的其他地方,指令序列里的其他地方,然后你会继续这个过程。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And, sad to say, at least one of our tests produced an output that we were unhappy with.

    很不幸的是,至少一个测试输出我们,是不满意的,花费了太长时间。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And it made predictions that can be tested.

    做出的预测能够被测试出。

    麻省理工公开课 - 固态化学导论课程节选

  • Okay. Those of you who have your clickers let's pull them out, what I'd like you to do, if anybody doesn't have your clicker yet, please bring it to class. Please get one and bring it to class and we're only going to do one these exercise with the clickers today just as a test, but in subsequent classes we'll be using them quite a lot.

    好,带了表决器的人把拿出来,如果有人还没有表决器,我希望,你能弄一个然后把带到课上,我们今天只要用表决器做一个测试,但之后的课中我们将多次使用到

    耶鲁公开课 - 关于食物的心理学、生物学和政治学课程节选

  • And then notice the structure, WHILE I got a keyword WHILE, there's that color identifying it, and in parentheses I have a test.

    然后注意这个结构,有一个关键词,颜色就可以区分出了,然后括号内是个测试

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • I should really just put it in a nice test harness, where I run 100, 200, 1,000 trials, but I didn't want to bore you with that here.

    我应该把放到一个测试组件中,我运行100次,200次,1000次,但是我现在不想用这个来烦你们。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • 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.

    我们来检查检查,我写了一个小测试脚本,我写这个脚本来测试单元排序,能够打印出每一轮结束后,链表的是什么样子的。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • 00 Well, it looks like it's dead on 100, which was our initial price in test two.

    看上去就固定在,这和我们测试2的初始值是一样的。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And when I'm done with the whole thing, before I end the increment of the variable, you know, when I'm done, I'm just not returning anything out.

    在循环外面初始化,然后做一个终结测试,然后在循环内部有一个指令集,在这个例子中,就是对余数做检查,然后显示信息,当我完成了整个循环。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • So before I try and run my program, I test each part of it independently.

    因此在我尝试运行我的程序之前,我都会对的每个部分进行独立的测试

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And in test one it's a little bit above 100.

    而在测试1中的值应该稍高一点。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • I want it to go back around to the test.

    我希望回到测试哪里。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • For the latter, this is a place where running test cases would do a good job of helping with that. Nonetheless, having done that, let's look at a better way to write this. Which is right here it is also, I think, on your sheet, I'm going to uncomment that, and comment this one out, yeah. All right?

    对于后者来说,运行测试用例,对会有很大的帮助,尽管如此,讲完了这些,让我们再来看看更好的,来写这个程序的一种方法吧,也就是这里,我想这程序也在,你们的课堂手册上面,我得先把这里取消注释,然后注释掉这里,是的,对不对?

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • 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进行了绑定,我还是要对进行同样的测试,但是请注意现在我有了两个同样的命令,但是们有不同的缩进。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • The beauty of this is, it keeps me from getting lazy, and not only testing my program and the thing that found the bug, but in all the things that used to work.

    运行函数而不用再输入了,这其中的,美妙之处在于,让我变的勤快了点,并不是仅仅的去测试程序发现bug方面,同样适用于那些正常工作的模块。

    麻省理工公开课 - 计算机科学及编程导论课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定