mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
Fix error in test compilation
This commit is contained in:
parent
cf13a7c21b
commit
d691df9cbf
1 changed files with 7 additions and 6 deletions
|
@ -5,15 +5,16 @@
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
NSURLComponents *components = nil;
|
||||||
|
|
||||||
START_SET("components");
|
START_SET("components");
|
||||||
|
|
||||||
NSURLComponents *components = [NSURLComponents componentsWithURL:[NSURL URLWithString:@"https://user:password@some.host.com"] resolvingAgainstBaseURL:NO];
|
components = [NSURLComponents componentsWithURL:[NSURL URLWithString:@"https://user:password@some.host.com"] resolvingAgainstBaseURL:NO];
|
||||||
|
|
||||||
[components setQueryItems: [NSArray arrayWithObjects:
|
[components setQueryItems: [NSArray arrayWithObjects:
|
||||||
[NSURLQueryItem queryItemWithName:@"lang" value:@"en"],
|
[NSURLQueryItem queryItemWithName:@"lang" value:@"en"],
|
||||||
[NSURLQueryItem queryItemWithName:@"response_type" value:@"code"],
|
[NSURLQueryItem queryItemWithName:@"response_type" value:@"code"],
|
||||||
[NSURLQueryItem queryItemWithName:@"uri" value:[NSURL URLWithString:@"https://some.url.com/path?param1=one¶m2=two"].absoluteString],
|
[NSURLQueryItem queryItemWithName:@"uri" value:[[NSURL URLWithString:@"https://some.url.com/path?param1=one¶m2=two"] absoluteString]], nil]];
|
||||||
nil]];
|
|
||||||
// URL
|
// URL
|
||||||
PASS([[components string] isEqualToString:
|
PASS([[components string] isEqualToString:
|
||||||
@"https://user:password@some.host.com/?lang=en&response_type=code&uri=https://some.url.com/path?param1%3Done%26param2%3Dtwo"],
|
@"https://user:password@some.host.com/?lang=en&response_type=code&uri=https://some.url.com/path?param1%3Done%26param2%3Dtwo"],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue