iAdd test for getting 'localhost'

This commit is contained in:
rfm 2025-05-28 13:48:09 +01:00
parent 02aca32950
commit 59c35bda67

View file

@ -11,6 +11,10 @@ int main()
NSHost *localh;
NSHost *tmp;
tmp = [NSHost hostWithName: @"localhost"];
PASS(tmp != nil, "NSHost gets localhost");
NSLog(@"localhost is %@", tmp);
tmp = [NSHost hostWithName: @"www.w3.org"];
PASS(tmp != nil, "NSHost gets www.w3.org");
NSLog(@"www.w3.org is %@", tmp);