numeric class test [计] 数字类测试
Test the data format of numeric data to determine whether it's a date (see Listing 19).
测试数值数据的数据格式,以确定它是否是日期(参见清单19)。
When you have an easy way to express numeric literals, especially in hexadecimal, you can easily build flags that correspond to specific test cases, which is a common programming trick.
当您具有容易的方式来表达数值常量时,尤其是十六进制,就可以容易地构建对应于特定测试用例的标志,这是一种常见的编程技术。
In particular, be careful about using the equals method to test for numeric equality.
尤其在使用equals方法来检测数值之间是否相等时要小心。
应用推荐