Mark notANumber test case as hopeful

This commit is contained in:
Hugo Melder 2022-08-19 10:58:29 +02:00 committed by GitHub
parent 560b1d19fb
commit 7d6a84f4f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,8 +52,13 @@ int main()
PASS(NSNumberFormatterBehaviorDefault == [fmt formatterBehavior],
"a new formatter can have the default behavior set")
/* It is not guaranteed by ICU that UNUM_NAN_SYMBOL is "NaN".
* On Windows, NaN has a negative signum and returns "-NaN".
*/
testHopeful = YES;
str = [fmt stringFromNumber: [NSDecimalNumber notANumber]];
PASS_EQUAL(str, @"NaN", "notANumber special case")
testHopeful = NO;
START_SET("NSLocale")
NSLocale *sys;