Mercurial > repos > public > sbplib_julia
diff test/testGrids.jl @ 661:f0ceddeae993 feature/get_boundary_identifiers
Fix and test type stability of boundary_identifiers.
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Sun, 31 Jan 2021 13:04:19 +0100 |
parents | b21fea54ca10 |
children | 1d3e29ffc6c6 |
line wrap: on
line diff
--- a/test/testGrids.jl Sat Jan 30 20:30:55 2021 +0100 +++ b/test/testGrids.jl Sun Jan 31 13:04:19 2021 +0100 @@ -57,9 +57,11 @@ @testset "boundary_identifiers" begin g = EquidistantGrid((2,5,3), (0.0,0.0,0.0), (2.0,1.0,3.0)) - @test boundary_identifiers(g) == (CartesianBoundary{1,Lower}(),CartesianBoundary{1,Upper}(), - CartesianBoundary{2,Lower}(),CartesianBoundary{2,Upper}(), - CartesianBoundary{3,Lower}(),CartesianBoundary{3,Upper}()) + bids = (CartesianBoundary{1,Lower}(),CartesianBoundary{1,Upper}(), + CartesianBoundary{2,Lower}(),CartesianBoundary{2,Upper}(), + CartesianBoundary{3,Lower}(),CartesianBoundary{3,Upper}()) + @test boundary_identifiers(g) == bids + @inferred boundary_identifiers(g) end end