aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksi Lindeman <dec05eba@protonmail.com>2019-05-25 02:48:33 +0200
committerAleksi Lindeman <dec05eba@protonmail.com>2019-05-25 02:48:36 +0200
commit9c52fc54400d706f8f7cdf82d3df2da733862819 (patch)
tree5a4a86ab359e7111c9e4675ef8b8a6b26d0eecdd /tests
parent36c6ce46a1abdb08eb9193704b9fce6bc7f3646b (diff)
Cleanup after finished
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/main.c b/tests/main.c
index eb1abc7..5b697a9 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -24,8 +24,7 @@ static void result_callback(QuickMediaHtmlNode *node, void *userdata) {
printf("a href: %s, node value: %.*s\n", href, text.size, text.data);
}
-int main(int argc, char **argv)
-{
+int main(int argc, char **argv) {
char *file_content = get_file_content("test_files/test.html");
int result = quickmedia_html_find_nodes_xpath(file_content, "//h3[class=\"story_name\"]//a", result_callback, NULL);
free(file_content);