最后,你又提到专业化的标志就是拥有良好的单元测试,而TDD则是达成这一目标的一种方法而已。
At the end, you said the hallmark of the professional is to have good unit tests, and TDD is one way of achieving that.
使用位测试,可以容易地测试标志变量上的特定标志。
Using bit tests, you can easily test for specific flags on a flag variable.
区别很微妙:在一个失败的样例中,不带可选标志运行测试可以帮您了解运行总时间。
The difference is subtle: running the test without the optional flag helps you understand the total time, even in the case of a failure.
应用推荐