如果你觉得一段代码难于理解,那么就写一个单元测试。
If you think a piece of code is confusing, write unit tests for it.
编写单元测试通常是为了测试一段源代码。
A unit test is usually written to test a piece of source code.
将一段时间内的多个客户端操作分组到一个原子(不可分割)单元。
Groups multiple client actions over a span of time into an atomic (indivisible) unit.
您也可以选择为一个jigsaw迷宫视图或者在重复的段中安排单元。
You could also choose to arrange the cells for a jigsaw puzzle view or in repeated segments.
单元测试的目的是测试一段代码的运行结果是否正确。
首先,如果计算单元中的某些节点在一段时间(比如密钥寿命的两倍)内一直停机,它们就会丧失通信能力。
First, if some nodes in your cell are left down for extended periods of time (likely twice the key lifetime), the nodes can lose the ability to communicate.
清单3中的模板创建单个HTML表行,行中的每个单元格保留返回的一段信息或者该信息的一个标签。
The template in Listing 3 creates a single HTML table row in which each cell holds a piece of returned information or a label for that information.
这里有4个床位,一些摆放杂乱的工具,和——穿过一段短小的连接回廊——第二个舱室里有三个链接单元。
There are 4 bunks, a clutter of science gear, and - through a short connecting corridor — THREE LINK UNITS in the second module.
如果我相当长一段时间都在进行开发,而没有编写相应的单元测试,我就会觉得紧张。
If I'm developing for long stretches of time without having written corresponding unit tests, I get the jitters.
第一段是水平维度,第二段是竖直维度,第三段是内容单元格。
The first excerpt is a horizontal dimension, the second is vertical, and the third is a content cell.
在于2014年初交付CH147 F训练单元以后,合同的第二阶段将从CAE对CH147 F机组人员训练项目的支撑服务开始。
Following delivery of the CH147F training suite in early 2014, phase two of the contract will commence with CAE leading the in-service support for the CH147F aircrew training program.
FOP 不能分割表单元,这意味着如果将较长的段包括在隐形表中,那么 FOP 将不会分割这一段。
FOP is reluctant to break in the middle of a cell, which means that it will resist breaking long paragraphs if they are included in a blind table.
甚至有时候你会看到最终游戏代码是以一段单元测试中的代码结束的。
Sometimes you will even see the code used in the unit tests ending up somewhere else in the final game code.
“冲刺” (sprint):一个sprint就是一小段迭代的单元时间,最长是30天。
A sprint is a short iteration of work that happens over a maximum of 30 days.
在谈到单元7 ,活动3 ,任务4 (第302段) ,并假设你是周红,写传真回答詹姆斯克劳福德从组件(东)有限公司。
Referring to Unit 7, Activity 3, Task 4 (p. 302), and suppose you were Zhou Hong, write a fax to answer James Crawford from Components (Eastern) Ltd.
文章把刚性圆盘和弹性轴段视为同一单元处理,其结果计算更为准确、编程更为简单。
This paper looks the rigid disc and elastic axis as a unit, it would became more reasonable theoretically and easier to program.
这里有4个床位,一些摆放杂乱的工具,和--穿过一段短小的连接回廊--第二个舱室里有三个链接单元。
There are 4 bunks, a clutter of science gear, and – through a short connecting corridor -- THREE LINK UNITS in the second module.
段塞流捕集器和生产分离器分出的凝液进入凝析油稳定单元进行稳定,生产稳定凝析油产品。
Condensate separated from slug catcher and production separator enters into stable state condensate unit to produce stable state condensate products.
将岩石力学中的研究方法———离散单元法引入塑料挤出固体输送研究中,并建立了固体输送段的离散输送模型。
This paper introduced the discrete Element Method which was used in rock mechanics into the research of polymer extruder's solid-conveying zone, and set up a discrete transport model.
以东营凹陷牛38井沙三段沉积地层为例,探讨了深水沉积的层序地层单元划分方法。
By taking Es_3 depositional stratigraphy of Well Niu38 in Dongying Depression for example, methods for dividing deep-water sequence stratigraphic units are discussed.
提出一种板桁结合梁剪滞效应分析的有限段单元模型,避免了常规计算方法中的某些不足。
A kind of finite segment element model for analysis of shear lag effect in plate and truss composite girder is proposed. The model avoids certain deficiencies in conventional calculations.
该测控单元实时监控电流电压信号,具有三段电流保护和接地漏电保护等动作特性。
The unit monitors the signals of currents and voltages in real time and has performance characteristics of three-sect current protection, grounding leakage protection and other protections.
形成的共聚物分子链中两单元的各种段的数目,是跟模拟一道统计的。
The number of Runs of the two units of the copolymer chain formed is counted along with the simulation.
所述段和任选的单元件优选以环形排列以构成戒指、项链等,并可具有相同或不同的结构。
The segment(s) and optionally the element, are preferably in an annular array to form a ring, necklace and the like and may be of the same or different configurations.
考虑可修的串联系统,其单元产品在出现故障时,由于种种原因,故障不能得到及时维修,形成了一段保障延误时间。
Consider a repairable system in series in which, for some reasons, individual units cannot get repaired in time after failure occurs, thereby creating a period of delayed maintenance.
所述 组合物包含至少一种是包括由丙烯衍生的单元的聚合物的组分,和至少 一种是苯乙烯类嵌段共聚物的组分。
The compositions incorporate at least one component that is a polymer including propylene-derived units and at least one component that is a styrenic block copolymer.
得出了河南油田五大地质单元不同层段的最佳钻头型号、选择方案和依据。
The best plan of selecting bit is concluded for the differential intervals of five geological units in Henan Oil Field.
聚氨酯是由异氰酸酯与多元醇反应制成的一种具有氨基甲酸酯链段重复结构单元的聚合物。
PU is a polymer with urethane segment repetitive structure unit formed after the reaction of TDI and PPG.
聚氨酯是由异氰酸酯与多元醇反应制成的一种具有氨基甲酸酯链段重复结构单元的聚合物。
PU is a polymer with urethane segment repetitive structure unit formed after the reaction of TDI and PPG.
应用推荐