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:
rfm 2012-01-24 09:40:29 +00:00
parent 9850140128
commit 564bbf5fec

View file

@ -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;
}