Skip to content

Commit 9e08d85

Browse files
committed
Add tests
1 parent 8aab70b commit 9e08d85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/runtests.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ CUDA.allowscalar(false)
129129
push!(b, x * A)
130130
end
131131

132+
@test sum(b, dims=3) == fill(6.0, 2, 2, 1)
133+
132134
@test capacity(b) == 3
133135
@test isfull(b) == true
134136
@test length(b) == 2 * 2 * 3
@@ -176,6 +178,7 @@ CUDA.allowscalar(false)
176178
for i in 1:5
177179
push!(b, fill(i, 2))
178180
end
181+
@test sum(b, dims=2) == [12;12;;]
179182
empty!(b)
180183
append!(b, 1:4)
181184
@test b == [

0 commit comments

Comments
 (0)