Differences From Artifact [27d0709520]:
- File
tests/OFStringTests.m
— part of check-in
[cd4fd689d6]
at
2021-01-01 22:11:33
on branch trunk
— OFString: Manually handle NaN
strtod() on HP-UX does not accept NaN. (user: js, size: 54612) [annotate] [blame] [check-ins using]
To Artifact [36a2a4713a]:
- File tests/OFStringTests.m — part of check-in [142f0d1242] at 2021-01-01 22:15:22 on branch trunk — Exclude HP-UX from 0x test for -[doubleValue] (user: js, size: 54641) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
1109 1110 1111 1112 1113 1114 1115 | TEST(@"-[floatValue]", C(@"\t-0.25 ").floatValue == -0.25 && C(@"\r\n\tINF\t\n").floatValue == INFINITY && C(@"\r -INFINITY\n").floatValue == -INFINITY && isnan(C(@" NAN\t\t").floatValue) && isnan(C(@" -NaN\t\t").floatValue)) | | | | | 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 | TEST(@"-[floatValue]", C(@"\t-0.25 ").floatValue == -0.25 && C(@"\r\n\tINF\t\n").floatValue == INFINITY && C(@"\r -INFINITY\n").floatValue == -INFINITY && isnan(C(@" NAN\t\t").floatValue) && isnan(C(@" -NaN\t\t").floatValue)) #if !defined(OF_ANDROID) && !defined(OF_SOLARIS) && !defined(OF_HPUX) && \ !defined(OF_DJGPP) && !defined(OF_AMIGAOS_M68K) # define INPUT @"\t-0x1.FFFFFFFFFFFFFP-1020 " # define EXPECTED -0x1.FFFFFFFFFFFFFP-1020 #else /* Android, Solaris, HP-UX, DJGPP and AmigaOS 3 do not accept 0x for strtod() */ # if (!defined(OF_SOLARIS) || !defined(OF_X86)) && !defined(OF_AMIGAOS_M68K) # define INPUT @"\t-0.123456789 " # define EXPECTED -0.123456789 # else /* * Solaris' strtod() has weird rounding on x86, but not on x86_64. * AmigaOS 3 with libnix has weird rounding as well. |
︙ | ︙ |