Skip to content

Commit 60d4cb7

Browse files
committed
added test
1 parent ddfb6b3 commit 60d4cb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/array.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ end
6161
@test_throws "Metal does not support Int128 values" MtlArray(Int128[1])
6262
@test_throws "Metal does not support UInt128 values" MtlArray(UInt128[1])
6363

64+
@test_throws "Invalid MTL storage mode" MtlArray{Int,1,2}(undef, 2)
65+
6466
@test collect(Metal.zeros(2, 2)) == zeros(Float32, 2, 2)
6567
@test collect(Metal.ones(2, 2)) == ones(Float32, 2, 2)
6668

0 commit comments

Comments
 (0)