changeset 8952:43aec7c168eb

test_diag_per.m: additional assert for sparse conversion test
author Jason Riedy <jason@acm.org>
date Tue, 10 Mar 2009 16:14:35 -0400
parents 5bce1357edd6
children a6945f92b868
files test/test_diag_perm.m
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/test_diag_perm.m	Tue Mar 10 15:44:11 2009 -0400
+++ b/test/test_diag_perm.m	Tue Mar 10 16:14:35 2009 -0400
@@ -76,6 +76,8 @@
 %! sP = sparse (P);
 %! assert (full (sP), full (P));
 %! assert (size (find (sP), 1), n);
+%! [I, J, V] = find (sP);
+%! assert (all (V == 1));
 
 ########################################
 ## Diagonal matrices