Add tests base
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/* This software is licensed by the MIT License, see LICENSE file */
|
||||
/* Copyright © 2022 Gregory Lirent */
|
||||
|
||||
#include "../../include/vtype.h"
|
||||
|
||||
#ifndef LIBCDSB_TESTS_RANDOM_H
|
||||
#define LIBCDSB_TESTS_RANDOM_H
|
||||
|
||||
extern int random_init(int argc, char** argv);
|
||||
|
||||
extern vtype_bool random_boolean();
|
||||
extern vtype_float random_float();
|
||||
extern vtype_double random_double();
|
||||
extern vtype_ldouble random_ldouble();
|
||||
|
||||
extern vtype_uint8 random_uint8();
|
||||
extern vtype_uint16 random_uint16();
|
||||
extern vtype_uint32 random_uint32();
|
||||
extern vtype_uint64 random_uint64();
|
||||
|
||||
extern vtype_int8 random_int8();
|
||||
extern vtype_int16 random_int16();
|
||||
extern vtype_int32 random_int32();
|
||||
extern vtype_int64 random_int64();
|
||||
|
||||
#endif /* LIBCDSB_TESTS_RANDOM_H */
|
||||
@@ -0,0 +1,12 @@
|
||||
/* This software is licensed by the MIT License, see LICENSE file */
|
||||
/* Copyright © 2022 Gregory Lirent */
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifndef LIBCDSB_TESTS_TEST_H
|
||||
#define LIBCDSB_TESTS_TEST_H
|
||||
|
||||
extern void put_separator();
|
||||
extern void test_init(int argc, char** argv);
|
||||
|
||||
#endif /* LIBCDSB_TESTS_TEST_H */
|
||||
@@ -0,0 +1,24 @@
|
||||
/* This software is licensed by the MIT License, see LICENSE file */
|
||||
/* Copyright © 2022 Gregory Lirent */
|
||||
|
||||
#include "../../include/vtype.h"
|
||||
|
||||
#ifndef LIBCDSB_TESTS_TIME_H
|
||||
#define LIBCDSB_TESTS_TIME_H
|
||||
|
||||
typedef struct timer {
|
||||
void* info;
|
||||
} TIMER;
|
||||
|
||||
|
||||
extern void timer_init (TIMER* timer);
|
||||
extern void timer_start(TIMER* timer);
|
||||
extern void timer_stop (TIMER* timer);
|
||||
extern void timer_free (TIMER* timer);
|
||||
|
||||
extern vtype_ldouble timer_value(TIMER* timer);
|
||||
|
||||
extern void psleep(unsigned long microsec);
|
||||
|
||||
|
||||
#endif /* LIBCDSB_TESTS_TIME_H */
|
||||
Reference in New Issue
Block a user