Added more testing to instantiate some missing templates.

This commit is contained in:
jgoppert
2015-11-12 09:43:44 -05:00
parent 6a351ac050
commit c29c44b450
3 changed files with 31 additions and 1 deletions
+8
View File
@@ -14,6 +14,14 @@ int main()
Vector3f c = a.cross(b);
c.print();
assert (c == Vector3f(0,0,1));
c = a % b;
assert (c == Vector3f(0,0,1));
Matrix<float, 3, 1> d(c);
Vector3f e(d);
assert (e == d);
float data[] = {4, 5, 6};
Vector3f f(data);
assert (f == Vector3f(4, 5, 6));
return 0;
}