Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Julia 1.6 test failures #116

Merged
merged 1 commit into from
Jan 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/runfieldtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ end
@test PB.get_data(fr; records=1) == [42.0]
fra = PALEOmodel.get_array(fr; squeeze_all_single_dims=false)
@test size(fra.values) == (1, 1)
@test fra.values == [42.0;;] # 1×1 Matrix{Float64}
@test fra.values == reshape([42.0], 1, 1) # 1×1 Matrix{Float64}
fra_dimensions = PB.get_dimensions(fra)
@test length(fra_dimensions) == 2
@test fra_dimensions[1].name == "cells"
Expand Down Expand Up @@ -245,7 +245,7 @@ end
# FieldArray from FieldRecord - records dim not squeezed out
fra = PALEOmodel.get_array(fr; squeeze_all_single_dims=false)
@test size(fra.values) == (2, 1)
@test fra.values == [42.0 ; 43.0;;] # 2×1 Matrix{Float64}
@test fra.values == reshape([42.0, 43.0], 2, 1) # 2×1 Matrix{Float64}
fra_dimensions = PB.get_dimensions(fra)
@test length(fra_dimensions) == 2
@test fra_dimensions[1].name == "test"
Expand Down
Loading