diff yetilab/matrix/test/test_matrix.yeti @ 275:2c3faf6a2820

Implementation and (currently) failing tests for duplicate
author Chris Cannam
date Sat, 25 May 2013 18:18:10 +0100
parents 197d23954a4e
children 678477bf617c
line wrap: on
line diff
--- a/yetilab/matrix/test/test_matrix.yeti	Thu May 23 21:36:20 2013 +0100
+++ b/yetilab/matrix/test/test_matrix.yeti	Sat May 25 18:18:10 2013 +0100
@@ -360,7 +360,19 @@
 "zeroSizeMatrix-\(name)": \(
     compareMatrices
        (mat.zeroSizeMatrix ())
-       (newMatrix (ColumnMajor ()) [])
+       (newMatrix (ColumnMajor ()) []) and
+        compareMatrices
+           (mat.zeroSizeMatrix ())
+           (newMatrix (ColumnMajor ()) [[]]) and
+        compareMatrices
+           (newMatrix (ColumnMajor ()) [[]])
+           (newMatrix (RowMajor ()) [[]]) and
+        compareMatrices
+           (mat.zeroSizeMatrix ())
+           (mat.newSparseMatrix (ColumnMajor ()) { rows = 0, columns = 1 } []) and
+        compareMatrices
+           (mat.zeroSizeMatrix ())
+           (mat.newSparseMatrix (ColumnMajor ()) { rows = 1, columns = 0 } [])
 ),
 
 "asRows-\(name)": \(