summaryrefslogtreecommitdiff
path: root/test/cscodec-utf8.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2010-12-04 15:28:50 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2010-12-04 15:28:50 +0000
commit2fee3114b46682b220c73aae7c4f2466dedb81ff (patch)
treed9dc3de599ec43fdf5cf70b59ac1fd049672914e /test/cscodec-utf8.c
parentd485dbd52ebc6a911a5ddcf6891212fccb82e8c0 (diff)
downloadlibparserutils-2fee3114b46682b220c73aae7c4f2466dedb81ff.tar.gz
Remove init/final code and turn aliases into static data structure. r=vince
svn path=/trunk/libparserutils/; revision=10961
Diffstat (limited to 'test/cscodec-utf8.c')
-rw-r--r--test/cscodec-utf8.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/cscodec-utf8.c b/test/cscodec-utf8.c
index 3e18e9e..b0dcb89 100644
--- a/test/cscodec-utf8.c
+++ b/test/cscodec-utf8.c
@@ -1,7 +1,6 @@
#include <stdio.h>
#include <string.h>
-#include "charset/charset.h"
#include <parserutils/charset/codec.h>
#include "utils/utils.h"
@@ -46,9 +45,6 @@ int main(int argc, char **argv)
return 1;
}
- assert(parserutils_charset_initialise(argv[1], myrealloc, NULL) ==
- PARSERUTILS_OK);
-
assert(parserutils_charset_codec_create("NATS-SEFI-ADD",
myrealloc, NULL, &codec) == PARSERUTILS_BADENCODING);
@@ -92,9 +88,6 @@ int main(int argc, char **argv)
parserutils_charset_codec_destroy(ctx.codec);
- assert(parserutils_charset_finalise(myrealloc, NULL) ==
- PARSERUTILS_OK);
-
printf("PASS\n");
return 0;