aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/test_html.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/test_html.c')
-rw-r--r--src/plugins/test_html.c159
1 files changed, 79 insertions, 80 deletions
diff --git a/src/plugins/test_html.c b/src/plugins/test_html.c
index e459eec..80d4a37 100644
--- a/src/plugins/test_html.c
+++ b/src/plugins/test_html.c
@@ -36,89 +36,88 @@
36int 36int
37main (int argc, char *argv[]) 37main (int argc, char *argv[])
38{ 38{
39 struct SolutionData html_grothoff_sol[] = 39 struct SolutionData html_grothoff_sol[] = {
40 { 40 {
41 { 41 EXTRACTOR_METATYPE_TITLE,
42 EXTRACTOR_METATYPE_TITLE, 42 EXTRACTOR_METAFORMAT_UTF8,
43 EXTRACTOR_METAFORMAT_UTF8, 43 "text/plain",
44 "text/plain", 44 "Christian Grothoff",
45 "Christian Grothoff", 45 strlen ("Christian Grothoff") + 1,
46 strlen ("Christian Grothoff") + 1, 46 0
47 0 47 },
48 },
49 {
50 EXTRACTOR_METATYPE_DESCRIPTION,
51 EXTRACTOR_METAFORMAT_UTF8,
52 "text/plain",
53 "Homepage of Christian Grothoff",
54 strlen ("Homepage of Christian Grothoff") + 1,
55 0
56 },
57 {
58 EXTRACTOR_METATYPE_AUTHOR_NAME,
59 EXTRACTOR_METAFORMAT_UTF8,
60 "text/plain",
61 "Christian Grothoff",
62 strlen ("Christian Grothoff") + 1,
63 0
64 },
65 {
66 EXTRACTOR_METATYPE_KEYWORDS,
67 EXTRACTOR_METAFORMAT_UTF8,
68 "text/plain",
69 "Christian,Grothoff",
70 strlen ("Christian,Grothoff") + 1,
71 0
72 },
73 {
74 EXTRACTOR_METATYPE_TITLE,
75 EXTRACTOR_METAFORMAT_UTF8,
76 "text/plain",
77 "Welcome to Christian Grothoff",
78 strlen ("Welcome to Christian Grothoff") + 1,
79 0
80 },
81 {
82 EXTRACTOR_METATYPE_LANGUAGE,
83 EXTRACTOR_METAFORMAT_UTF8,
84 "text/plain",
85 "en",
86 strlen ("en") + 1,
87 0
88 },
89 {
90 EXTRACTOR_METATYPE_PUBLISHER,
91 EXTRACTOR_METAFORMAT_UTF8,
92 "text/plain",
93 "Christian Grothoff",
94 strlen ("Christian Grothoff") + 1,
95 0
96 },
97 {
98 EXTRACTOR_METATYPE_UNKNOWN_DATE,
99 EXTRACTOR_METAFORMAT_UTF8,
100 "text/plain",
101 "2000-08-20",
102 strlen ("2000-08-20") + 1,
103 0
104 },
105 {
106 EXTRACTOR_METATYPE_RIGHTS,
107 EXTRACTOR_METAFORMAT_UTF8,
108 "text/plain",
109 "(C) 2000 by Christian Grothoff",
110 strlen ("(C) 2000 by Christian Grothoff") + 1,
111 0
112 },
113 { 0, 0, NULL, NULL, 0, -1 }
114 };
115 struct ProblemSet ps[] =
116 { 48 {
117 { "testdata/html_grothoff.html", 49 EXTRACTOR_METATYPE_DESCRIPTION,
118 html_grothoff_sol }, 50 EXTRACTOR_METAFORMAT_UTF8,
119 { NULL, NULL } 51 "text/plain",
120 }; 52 "Homepage of Christian Grothoff",
53 strlen ("Homepage of Christian Grothoff") + 1,
54 0
55 },
56 {
57 EXTRACTOR_METATYPE_AUTHOR_NAME,
58 EXTRACTOR_METAFORMAT_UTF8,
59 "text/plain",
60 "Christian Grothoff",
61 strlen ("Christian Grothoff") + 1,
62 0
63 },
64 {
65 EXTRACTOR_METATYPE_KEYWORDS,
66 EXTRACTOR_METAFORMAT_UTF8,
67 "text/plain",
68 "Christian,Grothoff",
69 strlen ("Christian,Grothoff") + 1,
70 0
71 },
72 {
73 EXTRACTOR_METATYPE_TITLE,
74 EXTRACTOR_METAFORMAT_UTF8,
75 "text/plain",
76 "Welcome to Christian Grothoff",
77 strlen ("Welcome to Christian Grothoff") + 1,
78 0
79 },
80 {
81 EXTRACTOR_METATYPE_LANGUAGE,
82 EXTRACTOR_METAFORMAT_UTF8,
83 "text/plain",
84 "en",
85 strlen ("en") + 1,
86 0
87 },
88 {
89 EXTRACTOR_METATYPE_PUBLISHER,
90 EXTRACTOR_METAFORMAT_UTF8,
91 "text/plain",
92 "Christian Grothoff",
93 strlen ("Christian Grothoff") + 1,
94 0
95 },
96 {
97 EXTRACTOR_METATYPE_UNKNOWN_DATE,
98 EXTRACTOR_METAFORMAT_UTF8,
99 "text/plain",
100 "2000-08-20",
101 strlen ("2000-08-20") + 1,
102 0
103 },
104 {
105 EXTRACTOR_METATYPE_RIGHTS,
106 EXTRACTOR_METAFORMAT_UTF8,
107 "text/plain",
108 "(C) 2000 by Christian Grothoff",
109 strlen ("(C) 2000 by Christian Grothoff") + 1,
110 0
111 },
112 { 0, 0, NULL, NULL, 0, -1 }
113 };
114 struct ProblemSet ps[] = {
115 { "testdata/html_grothoff.html",
116 html_grothoff_sol },
117 { NULL, NULL }
118 };
121 return ET_main ("html", ps); 119 return ET_main ("html", ps);
122} 120}
123 121
122
124/* end of test_html.c */ 123/* end of test_html.c */