Skip to content

Commit

Permalink
Add more ProductVS and PowerVS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Sep 5, 2015
1 parent 8673f63 commit d371e17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ function test_ProductVS(S::Type, V1::Type, V2::Type, e1, e2)
@test collect(z) == [collect(vnull(V1)); collect(vnull(V2))]
@test typeof(collect(e)) === Vector{S}
@test collect(e) == [collect(e1); collect(e2)]

@test "$z" == "VS{$S}[$(vnull(V1)),$(vnull(V2))]"
end
function test_ProductVSs()
V0I = EmptyVS{Int}
Expand Down Expand Up @@ -266,6 +268,8 @@ function test_PowerVS(S::Type, V1::Type, D::Integer, e1)
@test collect(e) == vcat(collect(e1),
repeat(collect(vnull(V1)), outer=[prod(n)-1]))

zs = "$(vnull(V1))"
@test "$z" == "VS{$S}[" * (zs*",")^(prod(n)-1) * zs * "]"
end
function test_PowerVSs()
# test_PowerVS(Bool)
Expand Down

0 comments on commit d371e17

Please sign in to comment.