38 lines
728 B
C
38 lines
728 B
C
#include "./versor.h"
|
|
|
|
#include "./../helpers.h"
|
|
|
|
int test_versor()
|
|
{
|
|
print_testing_section("BGC Versor");
|
|
|
|
if (test_versor_reset() != TEST_SUCCESS) {
|
|
return TEST_FAILED;
|
|
}
|
|
|
|
if (test_versor_set_values() != TEST_SUCCESS) {
|
|
return TEST_FAILED;
|
|
}
|
|
|
|
if (test_versor_copy() != TEST_SUCCESS) {
|
|
return TEST_FAILED;
|
|
}
|
|
|
|
if (test_versor_swap() != TEST_SUCCESS) {
|
|
return TEST_FAILED;
|
|
}
|
|
|
|
if (test_versor_are_close() != TEST_SUCCESS) {
|
|
return TEST_FAILED;
|
|
}
|
|
|
|
if (test_versor_is_identity() != TEST_SUCCESS) {
|
|
return TEST_FAILED;
|
|
}
|
|
|
|
if (test_versor_combine() != TEST_SUCCESS) {
|
|
return TEST_FAILED;
|
|
}
|
|
|
|
return TEST_SUCCESS;
|
|
}
|