Skip to content
Browse files

added some test matrices

  • Loading branch information...
1 parent a7b159e commit 60cfb38a3bf0de356797031157bcb22bcdc1b4f6 @Dav1dde committed Mar 24, 2014
Showing with 15 additions and 0 deletions.
  1. +15 −0 gl3n/linalg.d
View
15 gl3n/linalg.d
@@ -1869,6 +1869,21 @@ alias Matrix!(float, 3, 3) mat3;
alias Matrix!(float, 3, 4) mat34;
alias Matrix!(float, 4, 4) mat4;
+private unittest {
+ Matrix!(float, 1, 1) A = 1;
+ Matrix!(double, 1, 1) B = 1;
+ Matrix!(real, 1, 1) C = 1;
+ Matrix!(int, 1, 1) D = 1;
+ Matrix!(float, 5, 1) E = 1;
+ Matrix!(double, 5, 1) F = 1;
+ Matrix!(real, 5, 1) G = 1;
+ Matrix!(int, 5, 1) H = 1;
+ Matrix!(float, 1, 5) I = 1;
+ Matrix!(double, 1, 5) J = 1;
+ Matrix!(real, 1, 5) K = 1;
+ Matrix!(int, 1, 5) L = 1;
+}
+
/// Base template for all quaternion-types.
/// Params:
/// type = all values get stored as this type

0 comments on commit 60cfb38

Please sign in to comment.
Something went wrong with that request. Please try again.