From 7460bf78272601d7423845c0a5d6394885d5e420 Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Mon, 8 May 2023 19:31:56 +0200 Subject: [PATCH] fix order in tests --- test/tests_basic.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/tests_basic.jl b/test/tests_basic.jl index 745b82f..8dad4d0 100644 --- a/test/tests_basic.jl +++ b/test/tests_basic.jl @@ -90,11 +90,6 @@ end @test vertices isa Array{Float64, 2} @test unsafe_wrap(Array{Float64}, connectivity_pw.vertices, (3, n_vertices)) isa Array{Float64, 2} @test unsafe_wrap(Array{Float64, 2}, connectivity_pw.vertices, (3, n_vertices)) isa Array{Float64, 2} - # wrapping vectors - vertices = @test_nowarn unsafe_wrap(Array, connectivity_pw.vertices, 3 * n_vertices) - @test vertices isa Array{Float64, 1} - @test unsafe_wrap(Array{Float64}, connectivity_pw.vertices, 3 * n_vertices) isa Array{Float64, 1} - @test unsafe_wrap(Array{Float64, 1}, connectivity_pw.vertices, 3 * n_vertices) isa Array{Float64, 1} @test size(vertices) == (3, n_vertices) @test vertices[1, 1] == connectivity_pw.vertices[1] == 0.0 @@ -102,6 +97,11 @@ end @test vertices[1, 1] == connectivity_pw.vertices[1] == 1.0 @test_nowarn connectivity_pw.vertices[1] = 2.0 @test vertices[1, 1] == connectivity_pw.vertices[1] == 2.0 + # wrapping vectors + vertices = @test_nowarn unsafe_wrap(Array, connectivity_pw.vertices, 3 * n_vertices) + @test vertices isa Array{Float64, 1} + @test unsafe_wrap(Array{Float64}, connectivity_pw.vertices, 3 * n_vertices) isa Array{Float64, 1} + @test unsafe_wrap(Array{Float64, 1}, connectivity_pw.vertices, 3 * n_vertices) isa Array{Float64, 1} @test_nowarn p4est_destroy(p4est_pw) @test_nowarn p4est_connectivity_destroy(connectivity_pw)