mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
add tests for new mutable request
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34620 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9850140128
commit
564bbf5fec
1 changed files with 7 additions and 0 deletions
|
@ -45,6 +45,13 @@ int main()
|
|||
"Handle multiple values for an HTTP header field");
|
||||
[mutable release];
|
||||
|
||||
mutable = [NSMutableURLRequest new];
|
||||
PASS(mutable != nil && [mutable isKindOfClass:[NSMutableURLRequest class]],
|
||||
"NSURLRequest +new returns a mutable request");
|
||||
|
||||
PASS_EQUAL([mutable URL], nil, @"nil URL from empty request");
|
||||
PASS_EQUAL([mutable HTTPMethod], @"GET", @"GET method from empty request");
|
||||
|
||||
[arp release]; arp = nil;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue