diff --git a/tests/test_EmbeddedDiscreteFunctionOperators1D.cpp b/tests/test_EmbeddedDiscreteFunctionOperators1D.cpp index 5538543de393bd2fb8009e3d2cbd04d57107ead3..47ff54931e0f569dedda032a1b99608ad0b22bd0 100644 --- a/tests/test_EmbeddedDiscreteFunctionOperators1D.cpp +++ b/tests/test_EmbeddedDiscreteFunctionOperators1D.cpp @@ -681,6 +681,12 @@ TEST_CASE("EmbeddedDiscreteFunctionOperators1D", "[scheme]") REQUIRE_THROWS_WITH(p_R2x2_u * (TinyMatrix<3>{1, 3, 6, 4, 7, 2, 5, 9, 8}), "error: incompatible operand types Vh(P0:R^2x2) and R^3x3"); + REQUIRE_THROWS_WITH(p_R2x2_u * (TinyVector<1>{2}), + "error: incompatible operand types Vh(P0:R^2x2) and R^1"); + + REQUIRE_THROWS_WITH(p_R3x3_u * (TinyVector<2>{2, 1}), + "error: incompatible operand types Vh(P0:R^3x3) and R^2"); + REQUIRE_THROWS_WITH(p_Vector3_u * (TinyMatrix<3>{1, 3, 6, 4, 7, 2, 5, 9, 8}), "error: incompatible operand types Vh(P0Vector:R) and R^3x3"); REQUIRE_THROWS_WITH(p_Vector3_u * (double{2}), "error: incompatible operand types Vh(P0Vector:R) and R"); @@ -829,6 +835,8 @@ TEST_CASE("EmbeddedDiscreteFunctionOperators1D", "[scheme]") DiscreteFunctionR, DiscreteFunctionR); CHECK_EMBEDDED_XxVH_TO_VH(double{1.3}, /, p_R_u, // DiscreteFunctionR, DiscreteFunctionR); + + REQUIRE_THROWS_WITH(3.2 / p_R1_v, "error: incompatible operand types R and Vh(P0:R^1)"); } } } diff --git a/tests/test_EmbeddedDiscreteFunctionOperators2D.cpp b/tests/test_EmbeddedDiscreteFunctionOperators2D.cpp index fbf114d085d04a76da6715d3493516c9ead57044..f6885617190de4a928626105697eaeabab641b40 100644 --- a/tests/test_EmbeddedDiscreteFunctionOperators2D.cpp +++ b/tests/test_EmbeddedDiscreteFunctionOperators2D.cpp @@ -681,6 +681,12 @@ TEST_CASE("EmbeddedDiscreteFunctionOperators2D", "[scheme]") REQUIRE_THROWS_WITH(p_R2x2_u * (TinyMatrix<3>{1, 3, 6, 4, 7, 2, 5, 9, 8}), "error: incompatible operand types Vh(P0:R^2x2) and R^3x3"); + REQUIRE_THROWS_WITH(p_R2x2_u * (TinyVector<1>{2}), + "error: incompatible operand types Vh(P0:R^2x2) and R^1"); + + REQUIRE_THROWS_WITH(p_R3x3_u * (TinyVector<2>{2, 1}), + "error: incompatible operand types Vh(P0:R^3x3) and R^2"); + REQUIRE_THROWS_WITH(p_Vector3_u * (TinyMatrix<3>{1, 3, 6, 4, 7, 2, 5, 9, 8}), "error: incompatible operand types Vh(P0Vector:R) and R^3x3"); REQUIRE_THROWS_WITH(p_Vector3_u * (double{2}), "error: incompatible operand types Vh(P0Vector:R) and R"); @@ -831,6 +837,8 @@ TEST_CASE("EmbeddedDiscreteFunctionOperators2D", "[scheme]") DiscreteFunctionR, DiscreteFunctionR); CHECK_EMBEDDED_XxVH_TO_VH(double{1.3}, /, p_R_u, // DiscreteFunctionR, DiscreteFunctionR); + + REQUIRE_THROWS_WITH(3.2 / p_R1_v, "error: incompatible operand types R and Vh(P0:R^1)"); } } } diff --git a/tests/test_EmbeddedDiscreteFunctionOperators3D.cpp b/tests/test_EmbeddedDiscreteFunctionOperators3D.cpp index 1b24d0a9128db6bcc8d4c3eff70a38a3c5fc9ee4..60b68b473def74a34e839a0d558a3e08f21eb58f 100644 --- a/tests/test_EmbeddedDiscreteFunctionOperators3D.cpp +++ b/tests/test_EmbeddedDiscreteFunctionOperators3D.cpp @@ -681,6 +681,12 @@ TEST_CASE("EmbeddedDiscreteFunctionOperators3D", "[scheme]") REQUIRE_THROWS_WITH(p_R2x2_u * (TinyMatrix<3>{1, 3, 6, 4, 7, 2, 5, 9, 8}), "error: incompatible operand types Vh(P0:R^2x2) and R^3x3"); + REQUIRE_THROWS_WITH(p_R2x2_u * (TinyVector<1>{2}), + "error: incompatible operand types Vh(P0:R^2x2) and R^1"); + + REQUIRE_THROWS_WITH(p_R3x3_u * (TinyVector<2>{2, 1}), + "error: incompatible operand types Vh(P0:R^3x3) and R^2"); + REQUIRE_THROWS_WITH(p_Vector3_u * (TinyMatrix<3>{1, 3, 6, 4, 7, 2, 5, 9, 8}), "error: incompatible operand types Vh(P0Vector:R) and R^3x3"); REQUIRE_THROWS_WITH(p_Vector3_u * (double{2}), "error: incompatible operand types Vh(P0Vector:R) and R"); @@ -831,6 +837,8 @@ TEST_CASE("EmbeddedDiscreteFunctionOperators3D", "[scheme]") DiscreteFunctionR, DiscreteFunctionR); CHECK_EMBEDDED_XxVH_TO_VH(double{1.3}, /, p_R_u, // DiscreteFunctionR, DiscreteFunctionR); + + REQUIRE_THROWS_WITH(3.2 / p_R1_v, "error: incompatible operand types R and Vh(P0:R^1)"); } } }