事实上,如果客户没有掌握技术,仅使用测试断言可能很快变成反模式,在这种情况下,可行的测试用例对最终用户几乎毫无意义。
In fact, if the customer is not technical, using test assertions alone can quickly turn into an anti-pattern where test case green lights have little meaning to the end user.
如果系统有大量规则和事实,可能导致许多规则对于同一事实断言都是真的;这些规则是冲突的。
A system with a large number of rules and facts may result in many rules being true for the same fact assertion; these rules are said to be in conflict.
例如,来自请求方策略的替代的断言可能只是简单说明它支持加密。
For example, an assertion from an alternative from the requester policy might simply state that it is capable of supporting encryption.
听到我断言商界会这样显著地提高[航天运输的]可靠性,某些人可能会感到惊讶,心想也许那些公司为了降低成本,会作出不安全的决策。
Some may be surprised to hear me assert that the commercial sector would improve reliability so dramatically, thinking perhaps that companies would make unsafe decisions to achieve low cost.
在后一种情况下,需要附加的上下文(可能没有提供)来断言‘0’是等于男性还是女性。
In the latter case, additional context, which may not be readily present, is required to make any assertion about whether '0' is equal to male or female.
企业专注于改善他们的行为以对环境友好而受到称赞的同时可能从社会角度而言是有害的,菲费尔先生断言。
Companies that concentrate on and are praised for improving their environmental practices may simultaneously be acting in "socially toxic" ways, Mr Pfeffer claims.
例如,程序员可能会在程序中包含断言,使您永远也不会到达switch语句中的default条件。
For example, a programmer might include the assertion that you should never reach the default condition in a switch statement.
在以后的版本中,Google断言宏可能会在平台上抛出异常。
The Google assertion macros may throw exceptions in platforms where they are enabled in future releases.
测试断言可以有五种可能的结果中的某一种:已传送(passed)、已失败(failed)、警告(warning)、notApplicable或missingInput。
A test assertion may have one of five possible results: passed, failed, warning, notApplicable, or missingInput.
一个测试可能会因为一些具体的断言无效而失败(断言方法或者以“。fail”开头,或者以“。assert”开头)。
A test can fail because some specific assertion does not hold (assertion methods either start with ".fail "or".assert ").
Kauffman断言道,"我们不可能超越时间去预测生物圈将会出现什么新的功能。 因此我们不知道该把什么变量--是肺或者翅膀还是其它--代入方程。
We cannot say ahead of time what novel functionalities will arise in the biosphere.
然而,如果断言中使用的值为0,那么内嵌循环联接可能是最优选择,而不是合并联接。
However, if 0 is used in the predicate, a nested-loop join would be the optimal choice instead of merge join.
用来降低可能出现的断言模糊性的一种方法是将应用程序的条件分解为单独的通用函数。
One way to ease the possible pain of predicate ambiguity is by breaking down applications of conditions into separate generic functions.
一篇论文的断言越是惊世骇俗,其他人越有可能试图对它予以复制,如果论断似是而非,肯定复制不出来。
The more startling a paper's claims, the more likely it is that others will try to replicate it and, if the claims were specious, fail.
如果必须完全遵守所有消费者契约,那么提供者可能需要对发送管道里的消费者期望进行断言、以验证它发送的消息。
If strict conformance to all consumer contracts is an absolute must, the provider may have to validate the messages it sends by asserting its consumers' expectations in the send pipeline.
她断言,认同感可以被“快节奏、即时的屏幕回应”削弱,“可能下一代得通过他人的回应来确认自己的存在”。
She claimed that sense of identity can be eroded by "fast-paced, instant screen reactions, perhaps the next generation will define themselves by the responses of others".
由于替代中的断言是组合形成的,得到的替代中将会包含多个重复的断言,可能还包含相互矛盾的断言。
Since the assertions in the alternatives are combined, the resulting alternative contains duplicate occurrences of many of its assertions, and might also contain contradictory assertions.
虽然今年尚余数月,看来我们已可断言2011年是异常恶劣的一年,我们可能在今后相当长时间内感受到其恶果。
Although we still have some months to go, it is tempting to conclude that 2011 has been an exceptionally bad year, with consequences that are likely to be felt for some time to come.
消费者驱动的契约提供了一个已断言行为的基础,我们可以根据它对一个服务契约的变动产生的可能的影响进行评估。
Consumer-driven contracts comprise a foundation of asserted behaviour against which we can assess the likely impact of changes to a service contract.
这一次,断言所引起的消息将可能有助于查明错误来源。
This time, the assertions will likely cause a message to appear that will help pinpoint the source of the bug.
通用函数的概念(尤其是断言分派函数的思想)最初可能有点难以理解。
The concept of generic functions — especially the wild idea of predicatively dispatched functions — can be a little hard to understand at first.
在系统中实际的控制流程中,在交互过程中所进行的某些断言可能为假。
In the actual flow of control in the system, certain assertions made in the course of the interaction may be found to be false.
专家断言,由于家里贫穷或者较难取得食物,一些孕妇无法摄取足够食物,与食物充足的孕妇相比,这类孕妇在妊娠期间患妊娠疾病和体重增加的可能性更大。
Pregnant women who are worried about getting enough food because of poverty or lack of access are more likely to experience weight gain and problems with their pregnancy, researchers say.
意大利烹饪杂志GamberoRosso断言,尽管在美国可能有17000家麦当劳,但在意大利,仍有54000家高雅的意式餐厅。
The Italian culinary magazine Gambero Rosso asserts that while there may be 17, 000 McDonald's outside the US, there are 54, 000 decent Italian restaurants outside Italy.
在本系列之前的文章中,您可能见过WS - SecurityPolicy断言包含嵌套的策略表达式。
You've seen this in past articles of this series, where many of the WS-SecurityPolicy assertions contain nested policy expressions.
同样,您可能希望向if块中的else条件添加断言,这里已经设置了该条件,或者向switch语句中的缺省情况中添加断言,使缺省情况永远不可能到达。
Likewise, you might want to add assertions to else conditions in if blocks, where conditions are assumed, or to default cases of a switch statement, which should never be reached.
这不像之前的例子中,我们能断言一个模式的执行结果,对于xml节点来说不是节点就是叶子,我们也不允许有其他可能的情况存在。
This is unlike the previous scenarios we have seen we could assert that the patterns we complete, an XML node is either a node or a leaf, we did not allow for the possibility of anything else.
这不像之前的例子中,我们能断言一个模式的执行结果,对于xml节点来说不是节点就是叶子,我们也不允许有其他可能的情况存在。
This is unlike the previous scenarios we have seen we could assert that the patterns we complete, an XML node is either a node or a leaf, we did not allow for the possibility of anything else.
应用推荐