Play with the dot product test -- it wasn't sufficient to catch an error >_<
This commit is contained in:
parent
07c70b2bc7
commit
f80b580017
1 changed files with 3 additions and 3 deletions
|
@ -120,9 +120,9 @@ START_TEST(test_vector_dot)
|
|||
Vector3 b = vector_init(1, 1, 1);
|
||||
ck_assert(vector_dot(a, b) == 3.0);
|
||||
|
||||
a = vector_init(2, 3, 4);
|
||||
b = vector_init(4, 4, 4);
|
||||
ck_assert(vector_dot(a, b) == (2 * 4) + (3 * 4) + (4 * 4));
|
||||
a = vector_init(3, 5, 7);
|
||||
b = vector_init(7, 3, 5);
|
||||
ck_assert(vector_dot(a, b) == 71.0);
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue