mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-11 16:50:42 +00:00
test for exception
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33936 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
41298e5ec4
commit
4000d7891e
1 changed files with 3 additions and 0 deletions
|
@ -96,6 +96,9 @@ int main()
|
|||
"resourceSpecifier of /usr is //localhost/usr/");
|
||||
#endif
|
||||
|
||||
PASS_EXCEPTION([NSURL fileURLWithPath: nil], NSInvalidArgumentException,
|
||||
"nil is an invalid argument for +fileURLWithPath:");
|
||||
|
||||
url = [NSURL URLWithString: @"file:///usr"];
|
||||
PASS_EQUAL([url resourceSpecifier], @"/usr",
|
||||
"resourceSpecifier of file:///usr is /usr");
|
||||
|
|
Loading…
Reference in a new issue