322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
|
[@" xbCDE" hexadecimalValue] == 0xBCDE &&
[@"$CdEf" hexadecimalValue] == 0xCDEF &&
[@"\rFeh " hexadecimalValue] == 0xFE &&
[@"\r\t" hexadecimalValue] == 0)
/*
* These test numbers can be generated without rounding if we have IEEE
* floating point numbers, thus we can use == on then.
*/
TEST(@"-[floatValue]",
[@"\t-0.25 " floatValue] == -0.25 &&
[@"\r-INFINITY\n" floatValue] == -INFINITY &&
isnan([@" NAN\t\t" floatValue]))
TEST(@"-[doubleValue]",
|
|
|
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
|
[@" xbCDE" hexadecimalValue] == 0xBCDE &&
[@"$CdEf" hexadecimalValue] == 0xCDEF &&
[@"\rFeh " hexadecimalValue] == 0xFE &&
[@"\r\t" hexadecimalValue] == 0)
/*
* These test numbers can be generated without rounding if we have IEEE
* floating point numbers, thus we can use == on them.
*/
TEST(@"-[floatValue]",
[@"\t-0.25 " floatValue] == -0.25 &&
[@"\r-INFINITY\n" floatValue] == -INFINITY &&
isnan([@" NAN\t\t" floatValue]))
TEST(@"-[doubleValue]",
|