mirror of
https://github.com/zoriya/xmlParser.git
synced 2025-12-06 02:56:10 +00:00
Making tests works
This commit is contained in:
2
Makefile
2
Makefile
@@ -30,7 +30,7 @@ INCLUDE = -I ./include
|
||||
|
||||
CFLAGS = $(INCLUDE) -Wall -Wextra -Wshadow
|
||||
|
||||
LDFLAGS = -lmy -L ../my
|
||||
LDFLAGS = -lmy -L ../my -lm
|
||||
|
||||
CC = gcc
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
char *my_str_replace(char *str, const char *to_replace, char c);
|
||||
|
||||
int my_str_islower_or_num(const char *str);
|
||||
|
||||
int count_valid_queens_placements(int n);
|
||||
|
||||
@@ -38,7 +38,7 @@ Test(xml, completewstring)
|
||||
cr_assert_eq(n->child->properties, NULL);
|
||||
cr_assert_eq(n->child->next, NULL);
|
||||
cr_assert_str_eq(n->child->child->name, "pos");
|
||||
cr_assert_str_eq(n->child->child->child->properties->value, "5,5");
|
||||
cr_assert_str_eq(n->child->child->child->properties->value, "5, 5");
|
||||
cr_assert_str_eq(n->child->child->next->name, "size");
|
||||
cr_assert_str_eq(n->child->child->next->properties->key, "x");
|
||||
cr_assert_str_eq(n->child->child->next->properties->value, "500");
|
||||
|
||||
Reference in New Issue
Block a user