mirror of
https://github.com/ml-explore/mlx.git
synced 2025-11-02 01:08:10 +08:00
fix tests for linux
This commit is contained in:
@@ -511,6 +511,7 @@ TEST_CASE("test is inf") {
|
||||
CHECK_FALSE(isinf(x).item<bool>());
|
||||
|
||||
auto inf = std::numeric_limits<float>::infinity();
|
||||
|
||||
array y(inf);
|
||||
CHECK(isinf(y).item<bool>());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user