Added test with assert in test

Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
This commit is contained in:
Alejandro Saucedo 2022-11-26 16:29:23 +00:00
parent a434e0a791
commit bc1149a421
No known key found for this signature in database
GPG key ID: 99EBB7E98B99695F
2 changed files with 5 additions and 11 deletions

View file

@ -38,4 +38,8 @@ main()
std::cout << elem << " ";
}
std::cout << "}" << std::endl;
if (tensorOut->vector() != std::vector<float>{ 0, 4, 12 }) {
throw std::runtime_error("Result does not match");
}
}