weaker test case and constructor comment

This commit is contained in:
alexander-g
2021-01-31 07:21:23 +01:00
parent a995cbf9ec
commit ae0c539bfc
2 changed files with 2 additions and 2 deletions

View File

@@ -127,7 +127,7 @@ TEST(TestOpTensorCreate, ExceptionOnZeroSizeTensor)
mgr.evalOpDefault<kp::OpTensorCreate>({ tensorA });
} catch( const std::runtime_error& err ) {
// check exception
ASSERT_STREQ("Kompute Tensor attempted to create a zero-sized buffer", err.what() );
ASSERT_TRUE( std::string(err.what()).find("zero-sized") != std::string::npos );
}
}