位面征服系统奇书网:谁能帮忙翻译一下这篇计算机文章?

来源:百度文库 编辑:高校问答 时间:2024/04/28 04:27:31
7.3 When to test?
Program testing is a continuous procedure. The first test of a program should be in advance of any coding Once the algorithm has been expressed in pseudocode, it should be subjected to a desk-check. This is a procedure which should be applied to each module of the algorithm and involves selecting sample values of test data for the inputs to the module and processing them precisely as directed by the algorithm to determine whether or not they produce the desired output. This presupposes that the correct result was initially calculated independently of the written algorithm.
Such desk-checking is ideally done by a person other than the author of the algorithm. This could be another programmer, or if the pseudocode has been well written, the user of the program. Presumably the user is in the best position to know whether the results produced by an algorithm are what he or she would have required.
Once convinced that the algorithm is correct, the programmer proceeds to code it in a programming language. The next stage of testing occurs when the coding has been freed from syntax errors and is in a format which allows it to be executed. It may then be tested module by module or as a complete entity.

7.3什么时候检验? 试验计划是一项持续的程序. 首次试射计画应事先任何编码算法已经表示,一旦在pseudocode,应该受到政府的检查. 这是一个程序,应适用于每一单元的算法,涉及价值选择样本测试数据的投入为单元,正是他们所处理的算法直接决定它们是否产生预期的成果. 这个前提是正确的初步计算结果是独立于算法写. 这台测试理想之外的人所做的行为算法. 这可能是另一种程式,或者已经pseudocode得好,用户的计划. 大概是用户最能知道结果的算法是由他或她有什么要求. 一旦认为是正确的算法,进行密码程式设计语言,在. 下一阶段的试验,当编码已摆脱语法错误,这是一种形式,使之得到执行. 届时可能测试模块作为一个完整的单元或实体.