Making tests works

This commit is contained in:
AnonymusRaccoon
2020-03-04 12:20:40 +01:00
parent 5028a210a2
commit 91f3604772
3 changed files with 4 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ INCLUDE = -I ./include
CFLAGS = $(INCLUDE) -Wall -Wextra -Wshadow
LDFLAGS = -lmy -L ../my
LDFLAGS = -lmy -L ../my -lm
CC = gcc

View File

@@ -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);

View File

@@ -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");