Упрощение тестов
This commit is contained in:
parent
fcf793c758
commit
7f242c4b63
71 changed files with 518 additions and 943 deletions
|
@ -1,36 +1,14 @@
|
|||
#include "quaternion.h"
|
||||
|
||||
int test_quaternion()
|
||||
void test_quaternion()
|
||||
{
|
||||
print_testing_section("BGC Quaternion");
|
||||
|
||||
if (test_quaternion_reset() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_quaternion_set_to_identity() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_quaternion_set_values() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_quaternion_copy() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_quaternion_swap() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_quaternion_is_zero() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_quaternion_is_unit() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
return TEST_SUCCESS;
|
||||
test_quaternion_reset();
|
||||
test_quaternion_set_to_identity();
|
||||
test_quaternion_set_values();
|
||||
test_quaternion_copy();
|
||||
test_quaternion_swap();
|
||||
test_quaternion_is_zero();
|
||||
test_quaternion_is_unit();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue