Skip to content

Commit

Permalink
Update runtests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
bkamins authored Mar 22, 2022
1 parent 219c5cb commit 5026aef
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ end

for T in (Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64)
@inferred PooledArray([1, 2, 3], T)
@inferred PooledArray([1 2 3], T)
end
@test typeof(PooledArray([1 2; 3 4], Int8)) === PooledMatrix{Int, Int8, Matrix{Int8}}

for signed in (true, false), compress in (true, false)
@test_throws ErrorException @inferred PooledArray([1, 2, 3],
signed=signed,
Expand Down Expand Up @@ -585,7 +588,3 @@ end
@test_throws BoundsError insert!(x, 9, true)
@test x == [1, 1, 10, 99, 2, 3, 1]
end

@testset "constructor with reftype" begin
@test typeof(PooledArray([1 2; 3 4], Int8)) === PooledMatrix{Int, Int8, Matrix{Int8}}
end

0 comments on commit 5026aef

Please sign in to comment.