Your code will be much easier to read and test if the class has a name attached and isn't placed right in the middle of an entirely different block of code.
如果该类附带一个名称并且不是放在完全不同的代码块的中间,代码将更易于阅读和测试。
The RSpec descriptions go in a describe method, and you pass in the name of the class under test and a code block that has the actual spec.
describe方法提供了RSpec描述,您将传入测试类的名称和包含实际规范的代码块。
The while loop, which executes a block of statements as long as a test expression is true.
while循环,它当一个测试表达式为true时执行一个语句块。
The if statement, which executes a particular block of statements based on the result of a test expression.
if语句,它基于测试表达式的结果执行一个特定的语句块。
Why? Because that block identifies a set of things that I'm going to do if the test is true.
为什么呢?因为该代码块指定了在测试正确的情况下,我将进行的一系列操作。
Steam drive pilot test in Block Qi40 has achieved ideal development result, but the sweep efficiency is low and stable production period is short because of reservoir heterogeneity.
齐40块蒸汽驱先导试验取得了较为理想的开发效果,但由于受油藏非均质性的影响,蒸汽驱过程中出现了蒸汽波及效率低、稳产时间短等现象。
Test the brake block lining is worn or not, if it's worn seriously, should exchange the lining.
检查制动块衬瓦是否磨损,如磨损量过大,应更换衬瓦。
Test and study on compression strength and shear strength of the brickwork for a new concrete small hollow block with connector have been carried out.
对一种带联接件的新型混凝土小型空心砌块砌体的抗压强度和抗剪强度进行了试验研究。
On the multifunctional testing device, the cutting test under coupling dynamic and static loads were conducted on mortar and granite block.
在自行研制的动静态多功能岩石破碎试验台上,以砂浆块和花岗岩为试验对象进行了冲击-静压切削破岩试验。
With modularity, required updates are centralized to the single core building block, overcoming test script decay.
通过模块化,所需的更新被集中到一个单一的核心构件块中,克服测试脚本的衰退。
After reaching around 550mb, the test program was killed by the kernel when it tried to memset a block.
在达到大约550MB之后,当测试程序试图memset一个内存块时,内核杀死它。
Pilot test of linear water injection may be carried out to improve the sweep efficiency of the injected water and improve the effect of block development.
开展线性注水先导试验,提高注入水的波及系数,改善区块开发效果。
The result of laboratory test of Wen-15 block in Zhongyuan Oilfields indicates that the oil recovery factor could be increased by 6% or more.
中原油田文15块的原油室内试验结果表明,其提高原油采收率在6 %以上。
The stabilized weight of dolos armor block is determined on the basis of sectional model test and overall model test.
在断面模型试验与整体模型试验的基础上,确定了扭工字护面块体的稳定重量。
Else code block is a simple logical crossroad that helps show why the test would fail or pass if one path - and not another - is taken, according to test expectations.
else代码块是一个简单的逻辑分支,根据测试期望说明选取一条路经——而不是另一条路经——之后测试将失败(或通过)的原因。
It will be used for reference on well test interpretation in complex fault block oil reservoirs and reservoirs with complex drive and under the condition of multiple-well interference.
该方法对于复杂断块油藏试井解释、复杂驱替油藏试井解释和多井干扰情况下的测试解释,具有很好的借鉴意义。
The test example above tests the font (Georgia vs. Verdana) of a block of body copy.
这个例子测试了一块正文文本的字体(Georgia对Verdana)。
The utility model relates to a special test block for ultrasonic flaw detection, which belongs to the technical field of the ultrasonic flaw detection.
本实用新型涉及一种超声波探伤专用试块,涉及超声波探伤技术领域。
This paper analyse the dynamic characteristics of cylinder block of type ZS1105 D. I. diesel engine applying test mode analysis technique.
应用试验模态分析技术对ZS1105直喷式柴油机机体的动态特性进行了分析、研究。
This paper introduced the structures and test results of the big block permanent magnetic separator of CTDG1516N type.
介绍了CTDG1516N型永磁大块矿石磁选机结构及试验结果。
The feasibility of examining electrical porcelain insulator(EPI) with creeping wave probe was stu-(died, ) and a special test block was made for the experiment.
分析了超声爬波检测瓷绝缘子的可行性,加工制作了爬波检测专用试块。
The flow rate of water sample in SDI test decays with time exponentially. The mechanical block is the main blockage process of membrane fouling.
SDI测试中水样流速随时间按指数规律衰减,机械堵塞是滤膜的主要堵塞污染过程。
Three of the four tested units failed to block many of the security threats delivered by the three security effectiveness test systems.
4个被测设备中的3个,在阻止三套安全效率测试系统提供的许多项安全威胁攻击时均告失败。
In this paper, the damage mechanism of composite FRP concrete small hollow block wall was studied systematically by the pseudo-static test results of six specimens.
根据六个混凝土小型空心砌块FRP复合墙体试件的伪静力试验结果,对这种复合墙体的破坏机理进行了系统的分析。
Test the condition of all the welding parts especially rope-break safety instrument and welding seam of suspension coop safety inserting block.
检查各焊接部位的情况特别是断绳安全装置和吊笼安全插块部位的焊缝情况。
In this paper, the method to build and test user custom block in SPW is presented by doing a simple one.
通过创建一个简单的自定义模块并对其进行功能测试,介绍了在SPW中创建及测试用户自定义模块的方法。
This execution block was then placed within a for loop and the sum of the execution times was recorded as the total execution time for a given test scenario.
然后将该执行块放在一个for循环中,并且将执行时间的总和作为给定测试方案的总执行时间记录下来。
It introduces the method, content and result of cross - sectional model test of light hollow block structure adopted for workboat wharf, which provides reference for design.
介绍工作船码头采用轻型空心方块结构型式的断面模型试验方法、测试内容及试验结果,为设计提供依据。
Objective to evaluate their genotoxic risk in nurses occupationally exposed to antineoplastic drugs with chromosomal aberration test and cytokinesis-block micronucleus (CBMN) test.
目的用染色体畸变试验和胞质阻断微核试验来评价职业性接触抗癌药物的护士的遗传毒性危险性。
An old folk remedy, extract from these dark berries appears to block flu viruses in test tube studies.
这种水果是一种古老的民俗疗法。在一项试管研究中,这种黑色浆果提取物似乎能够阻止流感病毒的袭击。
应用推荐