From 3415de14c06a8b3f5af51e53e0ae57c77fe2a31f Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Wed, 27 Mar 2024 13:09:39 +0000 Subject: [PATCH] Tests/base/NSURL/basic.m: Use https://gnustep.github.io instead of http://example.com http://example.com/silly-file-name is currently returning 500 instead of 404, breaking tests. Use https://gnustep.github.io instead. --- Tests/base/NSURL/basic.m | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Tests/base/NSURL/basic.m b/Tests/base/NSURL/basic.m index 4ea6bcb9d..fe66400d1 100644 --- a/Tests/base/NSURL/basic.m +++ b/Tests/base/NSURL/basic.m @@ -56,22 +56,22 @@ int main() url = [NSURL URLWithString:@"this isn't a URL"]; PASS(url == nil, "URL with 'this isn't a URL' returns nil"); - url = [NSURL URLWithString: @"http://example.com/silly-file-name"]; + url = [NSURL URLWithString: @"https://gnustep.github.io/silly-file-name"]; data = [url resourceDataUsingCache: NO]; num = [url propertyForKey: NSHTTPPropertyStatusCodeKey]; PASS_EQUAL(num, [NSNumber numberWithInt: 404], - "Status of load is 404 for example.com/silly-file-name"); + "Status of load is 404 for gnustep.github.io/silly-file-name"); str = [url scheme]; - PASS([str isEqual: @"http"], - "Scheme of http://example.com/silly-file-name is http"); + PASS([str isEqual: @"https"], + "Scheme of https://gnustep.github.io/silly-file-name is https"); str = [url host]; - PASS([str isEqual: @"example.com"], - "Host of http://example.com/silly-file-name is example.com"); + PASS([str isEqual: @"gnustep.github.io"], + "Host of https://gnustep.github.io/silly-file-name is gnustep.github.io"); str = [url path]; PASS([str isEqual: @"/silly-file-name"], - "Path of http://example.com/silly-file-name is /silly-file-name"); - PASS([[url resourceSpecifier] isEqual: @"//example.com/silly-file-name"], - "resourceSpecifier of http://example.com/silly-file-name is //example.com/silly-file-name"); + "Path of https://gnustep.github.io/silly-file-name is /silly-file-name"); + PASS([[url resourceSpecifier] isEqual: @"//gnustep.github.io/silly-file-name"], + "resourceSpecifier of https://gnustep.github.io/silly-file-name is //gnustep.github.io/silly-file-name"); url = [NSURL URLWithString: @"http://example.com/silly-file-path/"];