mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
NSKVOSupport: Add toMany test
This commit is contained in:
parent
922813a90f
commit
3708abd5ed
2 changed files with 1217 additions and 1 deletions
1214
Tests/base/NSKVOSupport/kvoToMany.m
Normal file
1214
Tests/base/NSKVOSupport/kvoToMany.m
Normal file
File diff suppressed because it is too large
Load diff
|
@ -101,7 +101,7 @@ static char observerContext;
|
|||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
[NSAutoreleasePool new];
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
|
||||
Bar *bar = [Bar new];
|
||||
bar.x = 0;
|
||||
|
@ -134,6 +134,8 @@ main(int argc, char *argv[])
|
|||
bar.firstFoo.a = 2;
|
||||
PASS(obs1.receivedCalls == 3, "num observe calls");
|
||||
PASS(obs2.receivedCalls == 2, "num observe calls");
|
||||
|
||||
DESTROY(arp);
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue