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
|
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
|
-
+
+
-
+
-
|
#include "config.h"
#import "OFList.h"
#import "OFAutoreleasePool.h"
#import "OFString.h"
#import "OFExceptions.h"
#import "main.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFList";
static OFString *strings[] = {
@"Foo",
@"Bar",
@"Baz"
};
@implementation TestsAppDelegate (OFListTests)
void
- (void)listTests
list_tests()
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFList *list;
TEST(@"+[list]", (list = [OFList list]))
TEST(@"-[append:]", [list append: strings[0]] &&
|