Update a couple of broken tests

This commit is contained in:
Emma Broman
2021-12-06 13:47:29 +01:00
parent 59dc296cf1
commit 57e662e8e2

View File

@@ -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'"
)
);
}