mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
iAdd test for getting 'localhost'
This commit is contained in:
parent
02aca32950
commit
59c35bda67
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@ int main()
|
||||||
NSHost *localh;
|
NSHost *localh;
|
||||||
NSHost *tmp;
|
NSHost *tmp;
|
||||||
|
|
||||||
|
tmp = [NSHost hostWithName: @"localhost"];
|
||||||
|
PASS(tmp != nil, "NSHost gets localhost");
|
||||||
|
NSLog(@"localhost is %@", tmp);
|
||||||
|
|
||||||
tmp = [NSHost hostWithName: @"www.w3.org"];
|
tmp = [NSHost hostWithName: @"www.w3.org"];
|
||||||
PASS(tmp != nil, "NSHost gets www.w3.org");
|
PASS(tmp != nil, "NSHost gets www.w3.org");
|
||||||
NSLog(@"www.w3.org is %@", tmp);
|
NSLog(@"www.w3.org is %@", tmp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue