Skip to content

Commit

Permalink
Refs #11417. Add another failing test case
Browse files Browse the repository at this point in the history
Instead of throwing a size mismatch exception, it throws an out of range exception from V3D.
  • Loading branch information
Michael Wedel committed Mar 21, 2015
1 parent ff00bd1 commit 34c649b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/Mantid/Framework/Kernel/test/MatrixTest.h
Expand Up @@ -438,6 +438,9 @@ class MatrixTest: public CxxTest::TestSuite
TS_ASSERT_DELTA(nv.X(), -0.403000000000000, 1e-15);
TS_ASSERT_DELTA(nv.Y(), 25.663000000000000, 1e-15);
TS_ASSERT_EQUALS(nv.Z(), 0);

DblMatrix M43 = boost::lexical_cast<DblMatrix>("Matrix(4,3)-0.23,0.55,5.22,2.96,4.2,0.1,-0.23,0.55,5.22,2.96,4.2,0.1");
TS_ASSERT_THROWS(M43.operator *(v), Mantid::Kernel::Exception::MisMatch<size_t>);
}

private:
Expand Down

0 comments on commit 34c649b

Please sign in to comment.