- just a small matrix test update (print the matrices)
authorAkiko <akiko@linux-addicted.net>
Fri, 25 Oct 2013 11:33:27 +0000 (13:33 +0200)
committerAkiko <akiko@linux-addicted.net>
Fri, 25 Oct 2013 11:33:27 +0000 (13:33 +0200)
tests/test_matrix.cxx

index 411042d..6ba1310 100644 (file)
@@ -1,7 +1,26 @@
 #include <iostream>
 #include "engine/Matrix.hxx"
 
+Matrix<float, 2, 2> mat22;
+Matrix<float, 3, 3> mat33;
+Matrix<float, 4, 4> mat44;
+Matrix<float, 5, 5> mat55;
+Matrix<float, 6, 6> mat66;
+
 int main(int32_t argc, char **argv)
 {
+    switch (argc)
+    {
+        case 1:
+        default:
+            break;
+    }
+
+    std::cout << "Matrix 2x2: " << mat22.string() << std::endl
+              << "Matrix 3x3: " << mat33.string() << std::endl
+              << "Matrix 4x4: " << mat44.string() << std::endl
+              << "Matrix 5x5: " << mat55.string() << std::endl
+              << "Matrix 6x6: " << mat66.string() << std::endl;
+
     return 0;
 }