Fix matrix test

This commit is contained in:
Brendan Zabarauskas 2012-09-29 20:26:08 +10:00
parent 0ba6f5a633
commit 96713c75b3

View file

@ -15,7 +15,7 @@ fn test_Mat2() {
assert a == Mat2(1f, 3f,
2f, 4f);
assert a == mat2_v(Vec2(1f, 3f),
assert a == Mat2_v(Vec2(1f, 3f),
Vec2(2f, 4f));
assert a[0] == Vec2(1f, 3f);
@ -82,7 +82,7 @@ fn test_Mat3() {
2f, 5f, 8f,
3f, 6f, 9f);
assert a == mat3_v(Vec3(1f, 4f, 7f),
assert a == Mat3_v(Vec3(1f, 4f, 7f),
Vec3(2f, 5f, 8f),
Vec3(3f, 6f, 9f));
@ -170,7 +170,7 @@ fn test_Mat4() {
3f, 7f, 11f, 15f,
4f, 8f, 12f, 16f);
assert a == mat4_v(Vec4(1f, 5f, 9f, 13f),
assert a == Mat4_v(Vec4(1f, 5f, 9f, 13f),
Vec4(2f, 6f, 10f, 14f),
Vec4(3f, 7f, 11f, 15f),
Vec4(4f, 8f, 12f, 16f));