Упрощение тестов
This commit is contained in:
parent
fcf793c758
commit
7f242c4b63
71 changed files with 518 additions and 943 deletions
|
@ -1,34 +1,15 @@
|
|||
#include "vector2.h"
|
||||
|
||||
int test_vector2()
|
||||
void test_vector2()
|
||||
{
|
||||
print_testing_section("BGC Vector2");
|
||||
|
||||
if (test_vector2_reset() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_vector2_set_values() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_vector2_copy() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_vector2_swap() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_vector2_is_zero() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_vector2_is_unit() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
return TEST_SUCCESS;
|
||||
test_vector2_reset();
|
||||
test_vector2_set_values();
|
||||
test_vector2_copy();
|
||||
test_vector2_swap();
|
||||
test_vector2_is_zero();
|
||||
test_vector2_is_unit();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue