For instance, if you want to subdivide each of the two grids in the previous listing into two units where one unit is twice as wide as the other, you write the code shown in listing 10.
举例来说,如果您希望将之前清单中的两个网格继续划分为两个单元,其中一个单元是另一个单元的两倍宽度,可以编写如清单10所示的代码。
On the other hand, they achieve more code coverage than unit tests do because of their wide reach.
另一方面,由于其宽广的范围,它们实现了比单元测试更广的代码覆盖率。
The best you can do to flush these errors out into the open is use a wide variety of data in your unit tests.
所以要使这些错误浮出水面,最好的办法是在单元测试中使用各种各样的数据。
应用推荐