]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Check the right things.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 3 May 2004 14:16:58 +0000 (14:16 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 3 May 2004 14:16:58 +0000 (14:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@9141 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/block_sparse_matrix_iterator_04.cc

index bd0b49016a724d57f58a3c77356073047ed93d28..4ac64830ad87521992715236c4b631b0d34b9ee5 100644 (file)
@@ -53,6 +53,16 @@ void test ()
 
                                    // make sure that the two of them match
   Assert (it == it2, ExcInternalError());
+
+                                   // interestingly, at the time of writing
+                                   // this test, above assertion is ok, but an
+                                   // elementwise one is not (we fail in the
+                                   // first line)
+  Assert (it.row() == it2.row(), ExcInternalError());
+  Assert (it.block_row() == it2.block_row(), ExcInternalError());
+  Assert (it.column() == it2.column(), ExcInternalError());
+  Assert (it.block_column() == it2.block_column(), ExcInternalError());
+  Assert (it.index() == it2.index(), ExcInternalError());
    
   deallog << "OK" << std::endl;
 }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.