1 /* EINA - EFL data type library
2 * Copyright (C) 2008 Cedric Bail
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library;
16 * if not, see <http://www.gnu.org/licenses/>.
27 #include "eina_suite.h"
30 START_TEST(eina_simple_xml_parser_node_dump)
35 f = fopen("sample.gpx", "rb");
40 fseek(f, 0, SEEK_END);
46 fseek(f, 0, SEEK_SET);
50 if (fread(buf, 1, sz, f))
52 Eina_Simple_XML_Node_Root *root = eina_simple_xml_node_load
55 char *out = eina_simple_xml_node_dump(&root->base, " ");
57 ck_assert_str_eq(out, buf);
59 eina_simple_xml_node_root_free(root);
72 eina_test_simple_xml_parser(TCase *tc)
74 tcase_add_test(tc, eina_simple_xml_parser_node_dump);