mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
an empty string is not equal to nil
This commit is contained in:
parent
fff7573b88
commit
064c779fca
1 changed files with 3 additions and 0 deletions
|
@ -141,6 +141,9 @@ int main()
|
|||
s = makeFormattedString(@"%d.%d%s", 10, 20, "hello");
|
||||
PASS_EQUAL(s, @"10.20hello", "simple intWithFormat: works");
|
||||
|
||||
PASS([@"" isEqual: nil] == NO, "an empty string is not null");
|
||||
PASS([@"" isEqualToString: nil] == NO, "an empty string is not null");
|
||||
|
||||
[arp release]; arp = nil;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue