mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
More leaks fixed
This commit is contained in:
parent
aedd13dc94
commit
c7f0c27dd7
8 changed files with 47 additions and 40 deletions
|
@ -132,9 +132,9 @@ int main()
|
|||
PASS(200 == [val1 unsignedShortValue],
|
||||
"NSDecimalNumber unsignedShortValue works")
|
||||
|
||||
val1 = [[NSNumber alloc] initWithLongLong: LLONG_MIN];
|
||||
val2 = [[NSNumber alloc] initWithUnsignedLongLong:
|
||||
(unsigned long long)LLONG_MAX + 1];
|
||||
val1 = AUTORELEASE([[NSNumber alloc] initWithLongLong: LLONG_MIN]);
|
||||
val2 = AUTORELEASE([[NSNumber alloc] initWithUnsignedLongLong:
|
||||
(unsigned long long)LLONG_MAX + 1]);
|
||||
PASS([val1 compare: val2] == NSOrderedAscending,
|
||||
"comparison of min signed with max unsigned works")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue