Open astrealRBLX opened 3 years ago
After more testing it appears the number is not exactly 0.4 as testing near fixes it. I'm leaving this issue open however as I would like to see TestEZ internally resolve this (doing an equal check on decimals should check near to something like 10^-10
) rather than leaving developers questioning their sanity.
expect(value).to.be.near(0.4, 0.0000000001)
This is definitely a bug. I'm writing unit tests for my math interpreter and when attempting the following test it fails:
The error:
The values are identical. Of the 20+ tests I'm running this is the only one that fails. I'm really not sure why it is. I've triple checked my interpreter and the value is always returned correctly. This error only appears to occur with the subtract binary operation.