]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix one test. Explanation in the comment at the top.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 15 Jun 2010 02:15:33 +0000 (02:15 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 15 Jun 2010 02:15:33 +0000 (02:15 +0000)
git-svn-id: https://svn.dealii.org/trunk@21209 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/sparse_matrix_01a.cc

index a140c1207691fa42127e323979e8e114f8ed5c78..483debd8086480b0397ff85cf66434591ea02d70 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -14,7 +14,8 @@
 
 // check setting elements in a sparse matrix using SparseMatrix::set(). make
 // sure they are correct, and make sure that for the nonexisting entries
-// SparseMatrix::el() returns zero and operator() throws an exception
+// SparseMatrix::el() returns zero (operator() terminates with an exception
+// since sometime in the first half of 2010).
 
 #include "../tests.h"
 #include <lac/sparse_matrix.h>    
@@ -50,17 +51,6 @@ void test ()
       else
         {
           Assert (m.el(i,j) == 0, ExcInternalError());
-          bool exc_thrown = false;
-          double d;
-          try
-            {
-              d = m(i,j);
-            }
-          catch (const std::exception &)
-            {
-              exc_thrown = true;
-            }
-          Assert (exc_thrown == true, 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.