diff +blockmatrix/getDivisionTest.m @ 579:a5f1b0267dba feature/grids

Be less strict about what is considered a block matrix Empty blocks of different sizes are now allowed as well as empty block dimensions
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 07 Sep 2017 09:21:04 +0200
parents f0ef314e2070
children
line wrap: on
line diff
--- a/+blockmatrix/getDivisionTest.m	Thu Sep 07 09:18:55 2017 +0200
+++ b/+blockmatrix/getDivisionTest.m	Thu Sep 07 09:21:04 2017 +0200
@@ -56,6 +56,18 @@
             },
             {[2 1], 2}
         },
+        {
+            {zeros(3,0)},
+            {3, 0},
+        },
+        {
+            {zeros(3,0), zeros(3,0)},
+            {3, [0, 0]},
+        },
+        {
+            {zeros(3,0); zeros(2,0)},
+            {[3 2],0},
+        },
     };
 
     for i = 1:length(cases)