Skip to content
Snippets Groups Projects
Commit 61a2b130 authored by Uli Sack's avatar Uli Sack Committed by Oliver Sander
Browse files

provide test for initializer list construction

parent 3da2bbcd
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,14 @@ void test_interface()
checkMatrixInterface< DiagonalMatrix, Traits >( A );
}
void test_initialisation()
{
Dune::DiagonalMatrix<int, 2> const b = { 1, 2 };
assert(b.diagonal(0) == 1);
assert(b.diagonal(1) == 2);
}
int main()
{
try {
......
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