Files
kompute/test/TestTensor.cpp
2020-08-26 18:53:50 +01:00

11 lines
227 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 );
}