mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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 *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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue