In most cases, simple test functions are more than adequate for testing code.
在大多数情况下,简单的测试函数对测试代码来说已经足够了。
Test functions simply get run, but test classes have to be searched for methods.
测试函数直接运行,但是对于测试类,还必须搜索方法。
Above all, test functions vastly enhance what might be called the writability of tests.
总之,测试函数可以极大地增强编写测试的简便性。
The conclusions are verified by the numerical experimental results of several test functions.
用几个典型测试函数的数值实验数据验证了分析结果。
Numerical results of many typical test functions show that the algorithm is effective and reliable.
数值算例表明,该算法是有效、可靠的。
The tests on standard test functions indicate that the algorithm has high search efficiency and accuracy.
运用标准测试函数对算法进行了测试,结果表明算法具有高质量的搜索效率和精度。
If you do this, all your test functions will be automatically exported and run via the test function shown below.
如果这样做,则会自动导出所有测试函数并通过下面的代码运行它们。
Well, you define an HTML file that instantiates the DOH, instantiates widgets, then defines the test functions to execute.
首先定义一个HTML文件来实例化此doh、小部件,然后定义要执行的测试函数。
The test functions show that the algorithm has better convergence speed and stability, the solving result is excellent.
通过测试函数表明该算法具有较好的收敛速度和稳定性,求解结果非常好。
Consider modifying your software to include special test functions that can be executed via keyboard shortcuts or software switches.
考虑修改下你的软件,让它包含特殊的测试功能,通过快捷键或者软件开关即可触发执行测试。
The unittest framework will cycle through the test functions, calling setUp, the test function, then tearDown for each test function.
unittest框架会在测试函数之间循环往复,先调用setUp、再测试函数、然后清除(tearDown)测试函数。
This led to other problems, such as when they would occasionally test functions that had been fixed or when they tested functions with known issues.
这导致了其它的问题,比如他们何时可以对已经被修复的功能进行间断性测试,或者他们什么时候对已知的问题进行功能测试。
But when programmers want to write simple test code without all the verbiage involved in a doctest, then test functions are a wonderful way to write.
但是,如果程序员希望编写简单的测试代码,不愿意考虑doctest涉及的乱七八糟的东西,那么测试函数是很好的方法。
The CTCS3 simulation and test platform is established thus far and provides foundations for perfection of system and realization of test functions.
CTCS 3级列控系统仿真测试平台到现在为止已经基本搭建起来,为今后的系统完善以及测试功能的实现提供了基础。
Compared with standard Particle Swarm Optimization in four typical test functions, results show that our algorithm has potential to find a better solution.
与标准粒子群算法在四个典型测试函数上进行了比较,实验结果表明该算法有很好的潜力找到更好的解。
Some numerical tests are made by the seven typical test functions. Compared with other results, the searching ability of the proposed algorithm is more efficient.
针对七个典型的测试函数进行的对比分析表明本文提出的演化-单纯形算法是一种具有较高搜索效率的数值优化方法。
The simulations on four typical test functions indicate that the proposed algorithm can greatly improve the efficiency and precision in searching the optimum value.
四个典型测试函数的仿真实验表明,该算法显著加快了遗传算法的寻优速度,提高了遗传算法定位最优解的精度。
It occurs to many developers after authoring a few standard unit test functions that it would be better to move the call to verify from the test functions to the tearDown function.
许多开发者遇到过这样的事情,写了一些标准的单元测试函数之后,就认为把对verify方法从测试函数移到tearDown函数更好。
Going a step further, if you adopt the simpler and sleeker practice of writing test functions (as described above), then your tests will at least work under both py.test and nose.
更进一步,如果采用简单的做法编写测试函数(如上所述),那么测试至少能够在py . test和nose中运行。
We study the test function space carefully, then make the correct choice of test functions, such that test function space matches with the solution function space in each problem.
我们仔细地研究了试验函数空间并且正确地选择了试验函数,使得试验函数空间与解函数空间相匹配。
Personnel who perform inspection and test functions covered by this procedure shall meet the requirements of experience and required knowledge as defined by Table 1 to this procedure.
从事本程序检查和试验工作的人员,应符合本程序表1中规定的工作经验和知识背景要求。
These two methods and MOGA are used to solve 6 test functions, and we compare their performance from two indices. It is proved that CEAs have more search ability than traditional GAs.
使用两种协同进化算法和MOGA算法,对6个测试函数进行了测试,并从两个指标上对算法性能进行了比较,实验结果表明,协同进化算法较传统的遗传算法有更好的搜索能力。
Finally, the algorithm is tested by three test functions of numerical optimization. The emulational experiment results show that this improved algorithm has greater probability of convergence.
最后,用数值优化中的三个测试函数对该算法进行测试,仿真实验结果显示该算法可有效地提高算法的全局搜索能力。
The interpreter can be used interactively, which makes it easy to experiment with features of the language, to write throw-away programs, or to test functions during bottom-up program development.
解释器可以交互式使用,这样就可以很方便的测试语言中的各种功能,以便于编写发布用的程序,或者进行自下而上的开发。
Have key users test the applications on all daily, weekly, and monthly functions.
让关键用户测试每天、每周和每月会用到的应用程序功能。
The test links to two functions that print the message again: the first time in all uppercase characters and then again in lowercase characters.
该测试程序链接到再次打印该消息的两个函数上:第一次都用大写字符,第二次都用小写字符。
You create an array of functions or test fixtures, register them, and the DOH will execute them when loaded.
只需创建一个函数数组或测试装置、然后对之进行注册,加载后,DOH就会执行它们。
You create an array of functions or test fixtures, register them, and the DOH will execute them when loaded.
只需创建一个函数数组或测试装置、然后对之进行注册,加载后,DOH就会执行它们。
应用推荐