Skip to content

Commit ef113e5

Browse files
ferdymercuryhageboeck
authored andcommitted
[test] add test for non-symmetric matrix detection
1 parent 01eaf16 commit ef113e5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

math/matrix/test/testMatrixT.cxx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
#include <TMatrixD.h>
1212
#include <TMatrixDSym.h>
1313
#include <TMatrixF.h>
14-
#include <TMatrixFSym.h>
1514
#include <TMatrixDEigen.h>
1615

16+
#include <ROOT/TestSupport.hxx>
1717
#include <gtest/gtest.h>
1818

1919
#include <iostream>
@@ -217,3 +217,12 @@ TEST_F(testMatrixD, Eigen)
217217

218218
CompareTMatrix(B, C);
219219
}
220+
221+
TEST_F(testMatrixDSym, IsSymmetric)
222+
{
223+
using ROOT::TestSupport::CheckDiagsRAII;
224+
Double_t edata[] = {1, 2, 3, 4};
225+
CheckDiagsRAII diags;
226+
diags.requiredDiag(kError, "SetMatrixArray", "Matrix is not symmetric after Set");
227+
TMatrixDSym m(2, edata);
228+
}

0 commit comments

Comments
 (0)