Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | OFXMLElementBuilderTests: Use OF_ENSURE(). |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
b91ce5dba8a177642b058bcc5de7c860 |
| User & Date: | js 2013-07-11 10:54:00.000 |
Context
|
2013-07-11
| ||
| 11:55 | Add tests for -[forwardingTargetForSelector:]. check-in: 249eda6023 user: js tags: trunk | |
| 10:54 | OFXMLElementBuilderTests: Use OF_ENSURE(). check-in: b91ce5dba8 user: js tags: trunk | |
| 01:39 | Move feature defines from macros.h to OFObject.h. check-in: 1e39c46eab user: js tags: trunk | |
Changes
Changes to tests/OFXMLElementBuilderTests.m.
| ︙ | ︙ | |||
12 13 14 15 16 17 18 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < > > | | | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "OFXMLElement.h"
#import "OFXMLParser.h"
#import "OFXMLElementBuilder.h"
#import "OFAutoreleasePool.h"
#import "macros.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFXMLElementBuilder";
static OFXMLNode *nodes[2];
static size_t i = 0;
@implementation TestsAppDelegate (OFXMLElementBuilderTests)
- (void)elementBuilder: (OFXMLElementBuilder*)builder
didBuildElement: (OFXMLElement*)element
{
OF_ENSURE(i == 0);
nodes[i++] = [element retain];
}
- (void)elementBuilder: (OFXMLElementBuilder*)builder
didBuildParentlessNode: (OFXMLNode*)node
{
OF_ENSURE(i == 1);
nodes[i++] = [node retain];
}
- (void)XMLElementBuilderTests
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFXMLParser *p = [OFXMLParser parser];
|
| ︙ | ︙ |