ObjFW  Check-in [b26f81b030]

Overview
Comment:Don't use assert.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b26f81b0300b7c69314023fef2ac34889040c367c8eaa9f51fdc0fc157975fc2
User & Date: js on 2008-10-26 00:01:14
Other Links: manifest | tags
Context
2008-10-26
00:08
D'oh. check-in: f6f343580c user: js tags: trunk
00:01
Don't use assert. check-in: b26f81b030 user: js tags: trunk
2008-10-25
23:59
Cleaner return in atEndOfFile. check-in: 14c872dbfd user: js tags: trunk
Changes

Modified tests/OFList/OFList.m from [913aa88c30] to [168be86a94].

1
2
3
4
5
6
7
8
9
10
11
12
13


14
15
16
17
18
19
20
/*
 * Copyright (c) 2008
 *   Jonathan Schleifer <js@webkeks.org>
 *
 * All rights reserved.
 *
 * This file is part of libobjfw. It may be distributed under the terms of the
 * Q Public License 1.0, which can be found in the file LICENSE included in
 * the packaging of this file.
 */

#import <stdio.h>
#import <string.h>



#import "OFString.h"
#import "OFList.h"

/* TODO: Do real checks */
 
const char *strings[] = {













>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (c) 2008
 *   Jonathan Schleifer <js@webkeks.org>
 *
 * All rights reserved.
 *
 * This file is part of libobjfw. It may be distributed under the terms of the
 * Q Public License 1.0, which can be found in the file LICENSE included in
 * the packaging of this file.
 */

#import <stdio.h>
#import <string.h>

#import <assert.h>

#import "OFString.h"
#import "OFList.h"

/* TODO: Do real checks */
 
const char *strings[] = {

Modified tests/OFXMLFactory/OFXMLFactory.m from [545eb3e00b] to [12fd48a9aa].

9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 * the packaging of this file.
 */

#import <stdio.h>
#import <stdlib.h>
#import <string.h>

#import <assert.h>

#import "OFXMLFactory.h"

/* TODO: Do not only print, but check if it's the output it should be */

inline int
test_concat()
{







<
<







9
10
11
12
13
14
15


16
17
18
19
20
21
22
 * the packaging of this file.
 */

#import <stdio.h>
#import <stdlib.h>
#import <string.h>



#import "OFXMLFactory.h"

/* TODO: Do not only print, but check if it's the output it should be */

inline int
test_concat()
{
129
130
131
132
133
134
135
136
137
138
139
140
141
	free(tmp);

	return 0;
}

int main()
{
	assert(test_escape() == 0);
	assert(test_create_stanza() == 0);
	assert(test_concat() == 0);

	return 0;
}







<
<
<
|
<

127
128
129
130
131
132
133



134

135
	free(tmp);

	return 0;
}

int main()
{



	return test_escape() + test_create_stanza() + test_concat();

}