Skip to content

Commit ea52da1

Browse files
committed
Add tests.
1 parent bcf1b82 commit ea52da1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/execution.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,3 +1059,18 @@ end
10591059
end
10601060

10611061
############################################################################################
1062+
1063+
@testset "contextual dispatch" begin
1064+
1065+
@test_throws ErrorException CUDA.saturate(1f0) # CUDA.jl#60
1066+
1067+
@test testf(a->sincos.(a), [Complex(1f0,2f0)]) # CUDA.jl#42
1068+
@test testf(a->broadcast(x->x^1.5, a), rand(Float32, 1)) # CUDA.jl#71
1069+
@test testf(a->broadcast(x->1.0^x, a), rand(Int, 1)) # CUDA.jl#76
1070+
@test testf(a->broadcast(x->x^4, a), rand(Float32, 1)) # CUDA.jl#171
1071+
1072+
@test argmax(cu([true false; false true])) == CartesianIndex(1, 1) # CUDA.jl#659
1073+
1074+
end
1075+
1076+
############################################################################################

0 commit comments

Comments
 (0)