Mercurial > repos > public > sbplib_julia
diff test/Grids/equidistant_grid_test.jl @ 1575:efe1fc4cb6b0
Improve error message when giving arguments of different length to equidistant_grid()
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 25 Apr 2024 14:42:30 +0200 |
parents | 43aaf710463e |
children | 611ae2308aa1 |
line wrap: on
line diff
--- a/test/Grids/equidistant_grid_test.jl Sat Apr 13 23:49:39 2024 +0200 +++ b/test/Grids/equidistant_grid_test.jl Thu Apr 25 14:42:30 2024 +0200 @@ -117,6 +117,8 @@ @test_throws DomainError equidistant_grid((1.0,1.0),(1.0,1.0), 1, 1) @test_throws DomainError equidistant_grid((1.0,1.0),(-1.0,-1.0), 1, 1) + @test_throws ArgumentError equidistant_grid((0.0,),(8.0,5.0), 4, 3, 4) + @testset "Base" begin @test eltype(equidistant_grid(0.0, 1.0, 4)) == Float64 @test eltype(equidistant_grid((0,0),(1,3), 4, 3)) <: AbstractVector{Float64}