mirror of
https://github.com/nomic-ai/kompute.git
synced 2026-05-12 01:19:58 +00:00
Reformat
This commit is contained in:
@@ -114,7 +114,6 @@ TEST(TestOpTensorCreate, NoErrorIfTensorFreedBefore)
|
||||
EXPECT_FALSE(tensorB->isInit());
|
||||
}
|
||||
|
||||
|
||||
TEST(TestOpTensorCreate, ExceptionOnZeroSizeTensor)
|
||||
{
|
||||
std::vector<float> testVecA;
|
||||
@@ -123,11 +122,11 @@ TEST(TestOpTensorCreate, ExceptionOnZeroSizeTensor)
|
||||
|
||||
kp::Manager mgr;
|
||||
|
||||
try{
|
||||
try {
|
||||
mgr.evalOpDefault<kp::OpTensorCreate>({ tensorA });
|
||||
} catch( const std::runtime_error& err ) {
|
||||
// check exception
|
||||
ASSERT_TRUE( std::string(err.what()).find("zero-sized") != std::string::npos );
|
||||
} catch (const std::runtime_error& err) {
|
||||
// check exception
|
||||
ASSERT_TRUE(std::string(err.what()).find("zero-sized") !=
|
||||
std::string::npos);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user