Comparison of Double Types in JUnit

xiaoxiao2021-03-06  115

There is no ASSERTEQUALS (Double, Double) method in JUnit. Because the Double value is allowed. So implement Double's assertions to use Assertequals (Double, Double, Double). The third parameter is the allowable error.

转载请注明原文地址:https://www.9cbs.com/read-125223.html

New Post(0)