Remove test of converting negative float to uint (#2048)

This commit is contained in:
Cheng 2025-04-06 22:21:46 +09:00 committed by GitHub
parent 6cf48872b7
commit ba09f01ce8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,14 +139,6 @@ TEST_CASE("test astype") {
y = astype(x, int32);
CHECK_EQ(y.dtype(), int32);
CHECK_EQ(y.item<int>(), -3);
y = astype(x, uint32);
CHECK_EQ(y.dtype(), uint32);
// Use std::copy since the result is platform dependent
uint32_t v;
std::copy(x.data<float>(), x.data<float>() + 1, &v);
CHECK_EQ(y.item<uint32_t>(), v);
}
}