From ba09f01ce83caba2b8349f3e3903b81071f9d7ff Mon Sep 17 00:00:00 2001 From: Cheng Date: Sun, 6 Apr 2025 22:21:46 +0900 Subject: [PATCH] Remove test of converting negative float to uint (#2048) --- tests/creations_tests.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/creations_tests.cpp b/tests/creations_tests.cpp index 8f94fa3b8..ea43bd0e2 100644 --- a/tests/creations_tests.cpp +++ b/tests/creations_tests.cpp @@ -139,14 +139,6 @@ TEST_CASE("test astype") { y = astype(x, int32); CHECK_EQ(y.dtype(), int32); CHECK_EQ(y.item(), -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(), x.data() + 1, &v); - CHECK_EQ(y.item(), v); } }