断言语句 meaning in Chinese
a ert statement
a ertion operator
assert statement
assertion operator
assertion statement
Examples
- Is defined . when
时断言语句才编译。 - You can add assertion statements as the pre - or post - conditions of a method
可以将断言语句作为方法的前置条件或后置条件来添加。 - An assertion statement specifies a condition that you expect to hold true at some particular point in your program
断言语句指定在程序的某些特定点应为真的条件。 - If you assume that an argument is not null , for example , use an assertion statement to check for that assumption
例如,如果假定某个参数不为null ,请使用一条断言语句检查该假定。 - Be especially careful about using function calls in assertion statements , because evaluating a function can have unexpected side effects
在断言语句中使用函数调用时应特别小心,因为计算函数可能会有意外的副作用。