Using Unity (a special library for C for Unit tests)
This commit is contained in:
parent
857d79e572
commit
fd7c6c91cd
10 changed files with 4638 additions and 24 deletions
|
|
@ -11,9 +11,10 @@ void test_complex()
|
|||
test_complex_is_zero();
|
||||
test_complex_is_unit();
|
||||
test_complex_modulus();
|
||||
|
||||
/*
|
||||
test_complex_add();
|
||||
test_complex_subtract();
|
||||
test_complex_multiply();
|
||||
test_complex_divide();
|
||||
*/
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#include "vector2.h"
|
||||
#include "./vector2.h"
|
||||
|
||||
void test_vector2()
|
||||
{
|
||||
|
|
@ -11,11 +11,12 @@ void test_vector2()
|
|||
test_vector2_is_zero();
|
||||
test_vector2_is_unit();
|
||||
test_vector2_modulus();
|
||||
|
||||
/*
|
||||
test_vector2_add();
|
||||
test_vector2_subtract();
|
||||
test_vector2_multiply();
|
||||
test_vector2_divide();
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
#include "vector3.h"
|
||||
#include "./vector3.h"
|
||||
|
||||
#include "./../helpers.h"
|
||||
|
||||
void test_vector3()
|
||||
{
|
||||
|
|
@ -11,9 +13,10 @@ void test_vector3()
|
|||
test_vector3_is_zero();
|
||||
test_vector3_is_unit();
|
||||
test_vector3_modulus();
|
||||
|
||||
/*
|
||||
test_vector3_add();
|
||||
test_vector3_subtract();
|
||||
test_vector3_multiply();
|
||||
test_vector3_divide();
|
||||
*/
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue