Change Objective-C string to cstring in NSProgress unit test

This commit is contained in:
Hugo Melder 2022-08-04 10:46:55 +02:00
parent 52b8752776
commit e052d5764a

View file

@ -12,10 +12,10 @@ int main()
userInfo: dict];
PASS(progress != nil, "[NSProgress initWithParent:userInfo:] returns instance");
PASS_EQUAL([progress userInfo], dict, @"[NSProgress userInfo] returns correct user info");
PASS_EQUAL([progress userInfo], dict, "[NSProgress userInfo] returns correct user info");
[progress setUserInfoObject:@"new value" forKey:@"key"];
PASS_EQUAL([[progress userInfo] objectForKey:@"key"], @"new value", @"[NSProgress setUserInfoObject:forKey:] updates user info");
PASS_EQUAL([[progress userInfo] objectForKey:@"key"], "new value", "[NSProgress setUserInfoObject:forKey:] updates user info");
progress = [NSProgress discreteProgressWithTotalUnitCount:100];
PASS(progress != nil, "[NSProgress discreteProgressWithTotalUnitCount:] returns instance");