Skip to content
Snippets Groups Projects
Commit f248aa8a authored by Carsten Gräser's avatar Carsten Gräser
Browse files

[test] Test make_array for up to 10 arguments

parent 4441ec26
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,14 @@ void f(const Dune::array<T, n> &a) {
int main() {
// check that make_array works
f(Dune::make_array(1, 2));
f(Dune::make_array(1, 2, 3));
f(Dune::make_array(1, 2, 3, 4));
f(Dune::make_array(1, 2, 3, 4, 5));
f(Dune::make_array(1, 2, 3, 4, 5, 6));
f(Dune::make_array(1, 2, 3, 4, 5, 6, 7));
f(Dune::make_array(1, 2, 3, 4, 5, 6, 7, 8));
f(Dune::make_array(1, 2, 3, 4, 5, 6, 7, 8, 9));
f(Dune::make_array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10));
Dune::FieldVector<double, 2> x(0);
f(Dune::make_array(x, x));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment