๐ขtoBeNaN
Determine if your number is not a number
As the joke goes...
... as in, the 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.
If this method is called with anything other than a f32 | f64
type, it will result in a compile time error.
This method is safe to use with jest
portably.
Last updated