I can't understand this at all. What is the problem here?
I've tried typing 1.0, 1.0f, (CGFloat) 1.0 and (CGFloat)(2.0 - 1.0). Every time the same error.

I would recommend using FLT_EPSILON for this:
XCTAssertEqualWithAccuracy(mov.lastDelta, 0.0f, FLT_EPSILON, @"");
Unless you have some reason to require a larger epsilon.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With