]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add some more tests.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 2 Mar 2005 00:45:10 +0000 (00:45 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 2 Mar 2005 00:45:10 +0000 (00:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@9941 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/sparse_matrix_iterator_11.cc

index 6acc1c1475384fc41da641141c5741673890af51..9d0b85a340ef27cb49f5e65e4cc654b5a21bc7cf 100644 (file)
@@ -35,12 +35,19 @@ void test ()
   SparseMatrix<double> A(sparsity);
 
   SparseMatrix<double>::iterator k = A.begin(),
-                                 j = k++;
+                                 j = ++A.begin();
+
   Assert (k < j, ExcInternalError());
-  Assert (k != j, ExcInternalError());
+  Assert (j > k, ExcInternalError());
 
   Assert (!(j < k), ExcInternalError());
+  Assert (!(k > j), ExcInternalError());
+
+  Assert (k != j, ExcInternalError());
   Assert (!(k == j), ExcInternalError());
+
+  Assert (k == k, ExcInternalError());
+  Assert (!(k != k), 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.