From 57e662e8e2ef073bb64f9701a882bbb4ef60c92c Mon Sep 17 00:00:00 2001 From: Emma Broman Date: Mon, 6 Dec 2021 13:47:29 +0100 Subject: [PATCH] Update a couple of broken tests --- tests/test_lua_createsinglecolorimage.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_lua_createsinglecolorimage.cpp b/tests/test_lua_createsinglecolorimage.cpp index 8c6f8120e6..dbe0e3ca08 100644 --- a/tests/test_lua_createsinglecolorimage.cpp +++ b/tests/test_lua_createsinglecolorimage.cpp @@ -60,7 +60,9 @@ TEST_CASE("CreateSingleColorImage: Faulty 1st input type", "[createsinglecolorim CHECK_THROWS_WITH( openspace::luascriptfunctions::createSingleColorImage(L), - Catch::Matchers::Contains("parameter 1 was not the expected type") + Catch::Matchers::Contains( + "Expected type 'String' for parameter 1 but got wrong type 'Table'" + ) ); } @@ -71,7 +73,9 @@ TEST_CASE("CreateSingleColorImage: Faulty 2nd input type", "[createsinglecolorim CHECK_THROWS_WITH( openspace::luascriptfunctions::createSingleColorImage(L), - Catch::Matchers::Contains("parameter 2 was not the expected type") + Catch::Matchers::Contains( + "Expected type 'Table' for parameter 2 but got wrong type 'String'" + ) ); }