Check that appropriate exception thrown in UnitTestDispatcherBase.
This commit is contained in:
parent
4276b0cdcb
commit
0011e9d809
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user