mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-26 18:51:14 +08:00
fix tests for linux
This commit is contained in:
parent
6bf779e72b
commit
c38d43153b
@ -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>());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user