Упрощение тестов
This commit is contained in:
parent
fcf793c758
commit
7f242c4b63
71 changed files with 518 additions and 943 deletions
|
@ -1,32 +1,13 @@
|
|||
#include "vector3.h"
|
||||
|
||||
int test_vector3()
|
||||
void test_vector3()
|
||||
{
|
||||
print_testing_section("BGC Vector3");
|
||||
|
||||
if (test_vector3_reset() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_vector3_set_values() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_vector3_copy() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_vector3_swap() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_vector3_is_zero() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_vector3_is_unit() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
return TEST_SUCCESS;
|
||||
test_vector3_reset();
|
||||
test_vector3_set_values();
|
||||
test_vector3_copy();
|
||||
test_vector3_swap();
|
||||
test_vector3_is_zero();
|
||||
test_vector3_is_unit();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue