Skip to content

Commit

Permalink
Revise test in test/vecelement.jl to check Bool case.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arch D. Robison committed Apr 28, 2016
1 parent 6f9cb6e commit b208328
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/vecelement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ end

function call_iota(n::Integer,t::DataType)
x = thrice_iota(Vec{n,t})
@test x[1].value+x[n].value === convert(t,3+3*n)
@test x[1].value === make_value(t,1)
@test x[n].value === make_value(t,n)
end

# Try various tuple lengths and element types
for i=1:20
for t in [Int8, Int16, Int32, Int64, Float32, Float64]
for t in [Bool, Int8, Int16, Int32, Int64, Float32, Float64]
call_iota(i,t)
end
end
Expand Down

0 comments on commit b208328

Please sign in to comment.