Overview
Comment: | OFStringTests: Work around Solaris/x86's rounding |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
8a087107aa3159dd7bf070ba22ce11a7 |
User & Date: | js on 2015-04-11 16:17:46 |
Other Links: | manifest | tags |
Context
2015-04-11
| ||
16:18 | Get rid of acx_pthread.m4 check-in: d2df495f37 user: js tags: trunk | |
16:17 | OFStringTests: Work around Solaris/x86's rounding check-in: 8a087107aa user: js tags: trunk | |
14:37 | threading_pthread.m: Only set stack size if > 0 check-in: 60ebb21fc7 user: js tags: trunk | |
Changes
Modified tests/OFStringTests.m from [5cac4e97a2] to [c4958c6919].
︙ | ︙ | |||
451 452 453 454 455 456 457 | * 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])) | | | > | | > > > > > | 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 | * 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])) #if !defined(__ANDROID__) && !defined(__sun__) && !defined(__DJGPP__) # define INPUT @"\t-0x1.FFFFFFFFFFFFFP-1020 " # define EXPECTED -0x1.FFFFFFFFFFFFFP-1020 #else /* Android, Solaris and DJGPP do not accept 0x for strtod() */ # if !defined(__sun__) || !defined(__i386__) # define INPUT @"\t-0.123456789 " # define EXPECTED -0.123456789 # else /* Solaris' strtod() has weird rounding on x86, but not on x86_64 */ # define INPUT @"\t-0.125 " # define EXPECTED -0.125 # endif #endif TEST(@"-[doubleValue]", [INPUT doubleValue] == EXPECTED && [@"\r-INFINITY\n" doubleValue] == -INFINITY && isnan([@" NAN\t\t" doubleValue])) #undef INPUT #undef EXPECTED |
︙ | ︙ |