mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-14 07:23:26 +00:00
fixed tests
This commit is contained in:
@@ -166,8 +166,10 @@ TEST_F(UnitTestMat, StaticMethod_ToScreenMat)
|
|||||||
// Test exception handling in At() method
|
// Test exception handling in At() method
|
||||||
TEST_F(UnitTestMat, Method_At_OutOfRange)
|
TEST_F(UnitTestMat, Method_At_OutOfRange)
|
||||||
{
|
{
|
||||||
|
#if !defined(NDEBUG) && defined(OMATH_SUPRESS_SAFETY_CHECKS)
|
||||||
EXPECT_THROW(std::ignore = m2.At(2, 0), std::out_of_range);
|
EXPECT_THROW(std::ignore = m2.At(2, 0), std::out_of_range);
|
||||||
EXPECT_THROW(std::ignore = m2.At(0, 2), std::out_of_range);
|
EXPECT_THROW(std::ignore = m2.At(0, 2), std::out_of_range);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test Determinant for 3x3 matrix
|
// Test Determinant for 3x3 matrix
|
||||||
|
|||||||
Reference in New Issue
Block a user