Restructured and renamed some tests.

This commit is contained in:
2023-09-03 13:52:45 +02:00
parent f052fd8a94
commit 3543700b01
6 changed files with 89 additions and 74 deletions

27
tests/tensor_test.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef _TEST_TENSOR_H_INCLUDED_
#define _TEST_TENSOR_H_INCLUDED_
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "../tensor.h"
#include "tensor_assert.h"
void tensor_test_is_empty(void);
void tensor_test_is_equal(void);
void tensor_test_check_size(void);
void tensor_test_set_size(void);
void tensor_test_set(void);
void tensor_test_get(void);
void tensor_test_init_one(void);
void tensor_test_init_zero(void);
void tensor_test_init_rand(void);
void tensor_test_cpy(void);
void tensor_test_add_inplace(void);
void tensor_test_sub_inplace(void);
void tensor_test_add(void);
void tensor_test_sub(void);
#endif // _TEST_TENSOR_H_INCLUDED_