I have a question about JUnit assertEquals
to test double
values. Reading the API doc I can see:
@Deprecated
public static void assertEquals(double expected, double actual)
Deprecated. Use assertEquals(double expected, double actual, double delta)
instead.
(Note: in older documentation versions, the delta parameter is called epsilon)
What does the delta
(or epsilon
) parameter mean?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…