Commit a4344a17 authored by Celian Gossec's avatar Celian Gossec
Browse files

Update: tests: reworking any_span tests now that the span contains any_refs

parent 7bf0f721
......@@ -18,7 +18,7 @@ TEST(Py, any_span_ctor)
int i = 0;
for(auto v : span)
{
ASSERT_EQ(i++, *reinterpret_cast<int8_t*>(v));
ASSERT_EQ(i++, v.as<int8_t>());
}
delete[] buffer;
}
......@@ -36,7 +36,7 @@ TEST(Py, any_span_ctor_bigger_type)
int i = 0;
for(auto v : span)
{
ASSERT_EQ(i++, *reinterpret_cast<int64_t*>(v));
ASSERT_EQ(i++, v.as<int64_t>());
}
delete[] buffer;
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment