Update array tests

This commit is contained in:
Gregory Lirent 2022-06-10 17:08:36 +03:00
parent 11db0557b9
commit fe6732a39b
1 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,7 @@
#include <string.h>
#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)); }