From: Wolfgang Bangerth Date: Mon, 22 Aug 2016 22:56:10 +0000 (-0600) Subject: Do the test the comment at the top of the file actually suggests. X-Git-Tag: v8.5.0-rc1~747^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ab186dd95e25987a67bdc72653bf60a25eb8eb8;p=dealii.git Do the test the comment at the top of the file actually suggests. --- diff --git a/tests/bits/block_vector_vector_01.cc b/tests/bits/block_vector_vector_01.cc index 5051ca7119..0e5f6ae01a 100644 --- a/tests/bits/block_vector_vector_01.cc +++ b/tests/bits/block_vector_vector_01.cc @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 2004 - 2015 by the deal.II authors +// Copyright (C) 2004 - 2016 by the deal.II authors // // This file is part of the deal.II library. // @@ -22,16 +22,16 @@ // now autoconf'ed. #include "../tests.h" -#include +#include #include #include -void test (Vector &v) +void test (BlockVector &v) { for (unsigned int i=0; i w(v); + BlockVector w(v); AssertThrow (w==v, ExcInternalError()); @@ -48,7 +48,8 @@ int main () try { - Vector v (100); + std::vector block_sizes(2, 50); + BlockVector v (block_sizes); test (v); } catch (std::exception &exc)