diff --git a/include/flucoma/data/FluidTensor.hpp b/include/flucoma/data/FluidTensor.hpp index 0b437df0..c0e85ccb 100644 --- a/include/flucoma/data/FluidTensor.hpp +++ b/include/flucoma/data/FluidTensor.hpp @@ -106,6 +106,7 @@ class FluidTensor //: public FluidTensorBase static_assert(std::is_convertible::value, "Cannot convert between container value types"); std::copy(x.begin(), x.end(), mContainer.begin()); + std::cout << "Debug failing test (value) \n" << x << '\n' << *this; } template @@ -117,6 +118,7 @@ class FluidTensor //: public FluidTensorBase "Cannot convert between container value types"); std::copy(x.begin(), x.end(), mContainer.begin()); + std::cout << "Debug failing test (view) \n" << x << '\n' << *this; } /// Conversion assignment diff --git a/tests/data/TestFluidTensor.cpp b/tests/data/TestFluidTensor.cpp index bcca9f07..2b1973bd 100644 --- a/tests/data/TestFluidTensor.cpp +++ b/tests/data/TestFluidTensor.cpp @@ -160,12 +160,16 @@ TEST_CASE("FluidTensor can be copied","[FluidTensor]"){ } SECTION("Copy conversion") { - const FluidTensor y(x); - CHECK(y.size() == x.size()); - CHECK(y.rows() == x.rows()); - CHECK(y.cols() == x.cols()); + const FluidTensor x2{{0,1,2,3,4},{5,6,7,8,9}}; + const FluidTensor y(x2); + CHECK(y.size() == x2.size()); + CHECK(y.rows() == x2.rows()); + CHECK(y.cols() == x2.cols()); CHECK(y.descriptor() == x.descriptor()); - CHECK(std::equal(y.begin(),y.end(),x.begin())); + CHECK(std::equal(y.begin(),y.end(),x2.begin())); + std::cout << "Copy Conversion Debug" << y << '\n' << x2; + + } }