Mercurial > repos > public > sbplib_julia
changeset 407:b7734413003d test/equidistantgrid
Simplify test
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 13 Oct 2020 18:09:02 +0200 |
parents | c377fc37c04b |
children | 8fc429a22c8d |
files | test/testGrids.jl |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/test/testGrids.jl Tue Oct 13 17:16:28 2020 +0200 +++ b/test/testGrids.jl Tue Oct 13 18:09:02 2020 +0200 @@ -36,12 +36,9 @@ (-0.5,0.) (-0.5,7.11/2) (-0.5,7.11); (-0.25,0.) (-0.25,7.11/2) (-0.25,7.11); (0.,0.) (0.,7.11/2) (0.,7.11)] - approxequal = true; for i ∈ eachindex(gp) - approxequal=approxequal&&all(isapprox.(gp[i],p[i], atol=5e-13)); + @test [gp[i]...] ≈ [p[i]...] atol=5e-13 end - @test approxequal == true - # restrict g = EquidistantGrid((5,3), (0.0,0.0), (2.0,1.0))