Skip to content

Commit cb71401

Browse files
committed
check constant data vector
1 parent 002b83b commit cb71401

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/source/ConstantFundamentals.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ TEST_CASE("Data consistency", "[Constants]")
3838
{
3939
using T = decltype(val);
4040
Constant c(constant().make<T>(val));
41+
auto& data = c.getData();
42+
REQUIRE(data.size() > 0);
43+
REQUIRE(data.size() * sizeof(unsigned int) >= sizeof(T));
4144
const T* ptr = c.template getDataAs<T>();
4245
CHECK(ptr != nullptr);
4346
if ( ptr != nullptr )

0 commit comments

Comments
 (0)