From 18613679e751666153c0b2e9387272727fc99b06 Mon Sep 17 00:00:00 2001 From: Stuart Daines Date: Sun, 5 Jan 2025 15:44:23 +0000 Subject: [PATCH] Fix Julia 1.6 test failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [42 ; 43;;] # needs Julia 1.8 reshape([42.0, 43.0], 2, 1) # 2×1 Matrix{Float64} on any Julia version --- test/runfieldtests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runfieldtests.jl b/test/runfieldtests.jl index cb0ad32..97f328a 100644 --- a/test/runfieldtests.jl +++ b/test/runfieldtests.jl @@ -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" @@ -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"