From fe6732a39b37240a0fa7fb657fef49a931b6c955 Mon Sep 17 00:00:00 2001 From: Gregory Lirent Date: Fri, 10 Jun 2022 17:08:36 +0300 Subject: [PATCH] Update array tests --- tests/src/array/src/plug.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/src/array/src/plug.c b/tests/src/array/src/plug.c index 30511e8..364b6fc 100644 --- a/tests/src/array/src/plug.c +++ b/tests/src/array/src/plug.c @@ -3,6 +3,7 @@ #include #include "../../../../include/extra/vtype.h" +#include "../../../include/random.h" vtype_string* string_duplicate(const vtype_string* x) { return 0; } vtype_list* list_duplicate (const vtype_list* x) { return 0; } @@ -14,10 +15,10 @@ void list_free (vtype_list* x) {} void map_free (vtype_map* x) {} void vset_free (vtype_set* x) {} -int string_compare(const vtype_string* s0, const vtype_string* s1) { random_int8(); } -int list_compare (const vtype_list* s0, const vtype_list* s1) { random_int8(); } -int map_compare (const vtype_map* s0, const vtype_map* s1) { random_int8(); } -int vset_compare (const vtype_set* s0, const vtype_set* s1) { random_int8(); } +int string_compare(const vtype_string* s0, const vtype_string* s1) { return random_int8(); } +int list_compare (const vtype_list* s0, const vtype_list* s1) { return random_int8(); } +int map_compare (const vtype_map* s0, const vtype_map* s1) { return random_int8(); } +int vset_compare (const vtype_set* s0, const vtype_set* s1) { return random_int8(); } extern void string_copy_init(vtype_string* x, const vtype_string* s) { memset(x, 0, sizeof(*x)); } extern void list_copy_init (vtype_list* x, const vtype_list* s) { memset(x, 0, sizeof(*x)); }