Skip to:
While comparing a number that was summed to what should be the expected sum, the isEqual assertion fails.
Researching it, I think what's happening is that the sum is a floating point number, while the expected sum I am comparing it to is not.
Example below:
Test Output:testFloatingPointNumberAddition (23 ms) - Expected [1756.8] but received [1756.8]
While comparing a number that was summed to what should be the expected sum, the isEqual assertion fails.
Researching it, I think what's happening is that the sum is a floating point number, while the expected sum I am comparing it to is not.
Example below:
Test Output:
testFloatingPointNumberAddition (23 ms) - Expected [1756.8] but received [1756.8]