Differences From Artifact [7e0dbd9c91]:
- File tests/OFStringTests.m — part of check-in [86055ffb5b] at 2020-12-29 19:41:37 on branch trunk — -[longLongValueWithBase:]: Fall back to base 10 (user: js, size: 54568) [annotate] [blame] [check-ins using] [more...]
To 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]
︙ | ︙ | |||
1106 1107 1108 1109 1110 1111 1112 | * These test numbers can be generated without rounding if we have IEEE * floating point numbers, thus we can use == on them. */ TEST(@"-[floatValue]", C(@"\t-0.25 ").floatValue == -0.25 && C(@"\r\n\tINF\t\n").floatValue == INFINITY && C(@"\r -INFINITY\n").floatValue == -INFINITY && | | > | 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 | * These test numbers can be generated without rounding if we have IEEE * floating point numbers, thus we can use == on them. */ 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_DJGPP) && \ !defined(OF_AMIGAOS_M68K) # define INPUT @"\t-0x1.FFFFFFFFFFFFFP-1020 " # define EXPECTED -0x1.FFFFFFFFFFFFFP-1020 #else /* Android, Solaris, DJGPP and AmigaOS3 do not accept 0x for strtod() */ |
︙ | ︙ |