diff --git a/tests2/fn_clamp.cpp b/tests2/fn_clamp.cpp index b3e0a626..c1cdd3bf 100644 --- a/tests2/fn_clamp.cpp +++ b/tests2/fn_clamp.cpp @@ -22,7 +22,7 @@ using namespace arma; TEST_CASE("fn_clamp_1") { - mat A = randu(5,6); + mat A = randu(100,123); mat B = clamp(A, 0.2, 0.8); REQUIRE( B.min() == Approx(0.2) ); @@ -36,5 +36,6 @@ TEST_CASE("fn_clamp_1") REQUIRE( D.min() == Approx(0.2) ); REQUIRE( D.max() == A.max() ); - REQUIRE_THROWS( clamp(A, A.max(), A.min() ) ); + mat E; + REQUIRE_THROWS( E = clamp(A, A.max(), A.min() ) ); }