Updates will be applied April 15th at 12pm EDT (UTC-0400). GitLab could be a little slow between 12 - 12:45pm EDT.

Commit 0011e9d8 authored by Kenneth Moreland's avatar Kenneth Moreland

Check that appropriate exception thrown in UnitTestDispatcherBase.

parent 4276b0cd
......@@ -289,6 +289,7 @@ void TestInvokeWithBadType()
{
std::cout << " First argument bad." << std::endl;
dispatcher.Invoke(NULL, execObject, array);
VTKM_TEST_FAIL("Dispatcher did not throw expected error.");
}
catch (vtkm::cont::ErrorControlBadType error)
{
......@@ -302,6 +303,7 @@ void TestInvokeWithBadType()
{
std::cout << " Second argument bad." << std::endl;
dispatcher.Invoke(array, NULL, array);
VTKM_TEST_FAIL("Dispatcher did not throw expected error.");
}
catch (vtkm::cont::ErrorControlBadType error)
{
......@@ -315,6 +317,7 @@ void TestInvokeWithBadType()
{
std::cout << " Third argument bad." << std::endl;
dispatcher.Invoke(array, execObject, NULL);
VTKM_TEST_FAIL("Dispatcher did not throw expected error.");
}
catch (vtkm::cont::ErrorControlBadType error)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment