mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
GC updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32420 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b80266e49b
commit
68ba47afe2
3 changed files with 23 additions and 13 deletions
|
@ -176,7 +176,10 @@ int main()
|
|||
[tester setValue: m forKey: @"name"];
|
||||
PASS([tester valueForKey: @"name"] == m,
|
||||
"KVC works with mutable string");
|
||||
PASS(rc + 1 == [m retainCount], "KVC retains object values");
|
||||
if (nil == [NSGarbageCollector defaultCollector])
|
||||
{
|
||||
PASS(rc + 1 == [m retainCount], "KVC retains object values");
|
||||
}
|
||||
|
||||
[tester setValue:n forKey: @"num1"];
|
||||
PASS([[tester valueForKey: @"num1"] isEqualToNumber:n],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue