mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
NSString: Fix -commonPrefixWithString:options: behaviour (#455)
* Update changelog * NSString: fix -commonPrefixWithString:options: behaviour * NSString: More test cases
This commit is contained in:
parent
8b65241b03
commit
cf4c985e46
4 changed files with 53 additions and 0 deletions
|
@ -144,6 +144,9 @@ int main()
|
|||
PASS([@"" isEqual: nil] == NO, "an empty string is not null");
|
||||
PASS([@"" isEqualToString: nil] == NO, "an empty string is not null");
|
||||
|
||||
s = [@"test" commonPrefixWithString: nil options: 0];
|
||||
PASS_EQUAL(s, @"", "Common prefix of some string with nil is empty string");
|
||||
|
||||
[arp release]; arp = nil;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue