NaN
float value is considered a number. However, toBe
assertions will fail if you try to expect some value toBe(NaN)
. This assertion will provide proof that your actual value is, in fact, a NaN
value.f32 | f64
type, it will result in a compile time error.jest
portably.