We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc1978a commit b60da70Copy full SHA for b60da70
test/runtests.jl
@@ -23,13 +23,21 @@ CUDA.allowscalar(false)
23
@test_throws BoundsError @view b[:, 9]
24
end
25
26
- @testset "Bounds error for zero-length buffer" begin
+ @testset "Bounds error for zero-length / underfilled buffer" begin
27
b = CircularVectorBuffer{Bool}(10)
28
+ @test_throws BoundsError b[1]
29
@test_throws BoundsError b[end]
- for i in 1:5
30
+
31
+ push!(b, true)
32
+ @test b[1] == true
33
+ @test b[end] == true
34
+ @test_throws BoundsError b[2]
35
+ for i in 1:15
36
push!(b, true)
37
38
@test b[end] == true
39
+ @test b[10] == true
40
+ @test_throws BoundsError b[15]
41
42
43
@testset "1D vector" begin
0 commit comments