mirror of
https://github.com/zoriya/xmlParser.git
synced 2025-12-18 08:35:12 +00:00
21 lines
387 B
C
21 lines
387 B
C
/*
|
|
** EPITECH PROJECT, 2019
|
|
** xmlparser
|
|
** File description:
|
|
** test_basics
|
|
*/
|
|
|
|
#include "xml.h"
|
|
#include <criterion/criterion.h>
|
|
#include <string.h>
|
|
|
|
Test(xml, simple)
|
|
{
|
|
char *xml = strdup("<yes/>");
|
|
node *n = xml_parsenode(&xml);
|
|
|
|
cr_assert_str_eq(n->name, "yes");
|
|
cr_assert_eq(n->child, NULL);
|
|
cr_assert_eq(n->next, NULL);
|
|
cr_assert_eq(n->properties, NULL);
|
|
} |