Files
kompute/test/TestTensor.cpp
Alejandro Saucedo 46a0393b44 Updated docstrings
2020-08-28 16:44:04 +01:00

12 lines
228 B
C++

#include <catch2/catch.hpp>
#include "kompute/Tensor.hpp"
TEST_CASE("Tensor should have same vector as initialised") {
std::vector<uint32_t> vec{0,1,2};
kp::Tensor tensor(vec);
REQUIRE( tensor.data() == vec );
}