xctest - How to compare CGFloat in XCTestCase? -
i can't understand @ all. problem here?
i've tried typing 1.0, 1.0f, (cgfloat) 1.0 , (cgfloat)(2.0 - 1.0). every time same error.

i recommend using flt_epsilon this:
xctassertequalwithaccuracy(mov.lastdelta, 0.0f, flt_epsilon, @"");
unless have reason require larger epsilon.
Comments
Post a Comment