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.

screenshot xcode

i recommend using flt_epsilon this:

xctassertequalwithaccuracy(mov.lastdelta, 0.0f, flt_epsilon, @"");

unless have reason require larger epsilon.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -