From 3eeca84680242f0d060bc1e794d9773b6c4b9b3b Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 21 Jun 2004 16:56:15 +0000 Subject: [PATCH] Check a bit more. git-svn-id: https://svn.dealii.org/trunk@9438 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/compressed_sparsity_pattern_03.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/bits/compressed_sparsity_pattern_03.cc b/tests/bits/compressed_sparsity_pattern_03.cc index 8da37aac52..8510265104 100644 --- a/tests/bits/compressed_sparsity_pattern_03.cc +++ b/tests/bits/compressed_sparsity_pattern_03.cc @@ -34,7 +34,17 @@ void test () csp.add (i, (i+(i+1)*(j*j+i))%N); for (unsigned int i=0; i xx(1000, false); + for (unsigned int j=0; j<40; ++j) + xx[(i+(i+1)*(j*j+i))%N] = true; + + Assert (std::count (xx.begin(), xx.end(), true) == + csp.row_length(i), + ExcInternalError()); + + deallog << i << ' ' << csp.row_length (i) << std::endl; + } } -- 2.39.5