Skip to content

Commit

Permalink
change to sum array and test values to f32 (like branch type)
Browse files Browse the repository at this point in the history
  • Loading branch information
8me committed Apr 24, 2023
1 parent a6719f3 commit c6a05e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,13 @@ end
@test [row.int32_array for row in table] == BA

# do some hardcoded value checks
bunches = Float64[]
bunches = Float32[]
for i in 1:10
start = 1 + 1000*(i-1)
stop = 1000*i
push!(bunches, sum(table.float_array[start:stop]))
end
testvalues = Vector{Float64}([528882.3e0, 1.5877059e6, 2.6465295e6, 3.705353e6, 4.764177e6, 5.823e6, 6.881823e6, 7.9406475e6, 8.999469e6, 1.0058294e7])
testvalues = Vector{Float32}([528882.3f0, 1.5877059f6, 2.6465295f6, 3.705353f6, 4.764177f6, 5.823f6, 6.881823f6, 7.9406475f6, 8.999469f6, 1.0058294f7])
@test bunches testvalues

close(rootfile)
Expand Down

0 comments on commit c6a05e0

Please sign in to comment.