Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CasBex committed Aug 8, 2023
1 parent 8aab70b commit 9e08d85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ CUDA.allowscalar(false)
push!(b, x * A)
end

@test sum(b, dims=3) == fill(6.0, 2, 2, 1)

@test capacity(b) == 3
@test isfull(b) == true
@test length(b) == 2 * 2 * 3
Expand Down Expand Up @@ -176,6 +178,7 @@ CUDA.allowscalar(false)
for i in 1:5
push!(b, fill(i, 2))
end
@test sum(b, dims=2) == [12;12;;]
empty!(b)
append!(b, 1:4)
@test b == [
Expand Down

0 comments on commit 9e08d85

Please sign in to comment.