From 4ff6090f4691b95ea09443cafdc09018f80997d1 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Tue, 8 Oct 2019 09:16:10 +0200 Subject: [PATCH] Test size() function --- tests/base/vectorization_01.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/base/vectorization_01.cc b/tests/base/vectorization_01.cc index 3f6e146c55..82c86cdbc4 100644 --- a/tests/base/vectorization_01.cc +++ b/tests/base/vectorization_01.cc @@ -36,6 +36,10 @@ test() for (unsigned int i = 0; i < n_vectors; ++i) c[i] = Number(i); + AssertDimension(n_vectors, a.size()); + AssertDimension(a.size(), sizeof(a) / sizeof(Number)); + AssertDimension(VectorizedArray::size(), sizeof(a) / sizeof(Number)); + deallog << "Addition: "; VectorizedArray d = a + b; for (unsigned int i = 0; i < n_vectors; ++i) -- 2.39.5