Skip to content

Commit 3bddc3d

Browse files
committed
Fix test
1 parent b65eccf commit 3bddc3d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/device/intrinsics.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,10 @@ end
413413
end
414414

415415
let # "issue551"
416-
@test T.(MtlArray([π]), RoundNearest) = T(π)
417-
@test T.(MtlArray([ℯ]), RoundNearest) = T(ℯ)
416+
mtl_pi = only(Array(T.(MtlArray([π]), RoundNearest)))
417+
@test mtl_pi == T(π)
418+
mtl_ℯ = only(Array(T.(MtlArray([ℯ]), RoundNearest)))
419+
@test mtl_ℯ == T(ℯ)
418420
end
419421
end
420422
end

0 commit comments

Comments
 (0)