comparison test/Grids/equidistant_grid_test.jl @ 1649:b02917bcd7d5 feature/grids/curvilinear

Merge default
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 26 Jun 2024 12:41:03 +0200
parents 3e7438e2a033
children 5f348cc5598e 8250cf5a3ce9 7a2375080287
comparison
equal deleted inserted replaced
1645:64452a678e7a 1649:b02917bcd7d5
115 115
116 @test_throws DomainError equidistant_grid((0.0,0.0),(1.0,1.0), 0, 0) 116 @test_throws DomainError equidistant_grid((0.0,0.0),(1.0,1.0), 0, 0)
117 @test_throws DomainError equidistant_grid((1.0,1.0),(1.0,1.0), 1, 1) 117 @test_throws DomainError equidistant_grid((1.0,1.0),(1.0,1.0), 1, 1)
118 @test_throws DomainError equidistant_grid((1.0,1.0),(-1.0,-1.0), 1, 1) 118 @test_throws DomainError equidistant_grid((1.0,1.0),(-1.0,-1.0), 1, 1)
119 119
120 @test_throws ArgumentError equidistant_grid((0.0,),(8.0,5.0), 4, 3, 4)
121
120 @testset "Base" begin 122 @testset "Base" begin
121 @test eltype(equidistant_grid(0.0, 1.0, 4)) == Float64 123 @test eltype(equidistant_grid(0.0, 1.0, 4)) == Float64
122 @test eltype(equidistant_grid((0,0),(1,3), 4, 3)) <: AbstractVector{Float64} 124 @test eltype(equidistant_grid((0,0),(1,3), 4, 3)) <: AbstractVector{Float64}
123 125
124 @test size(equidistant_grid(0.0, 1.0, 4)) == (4,) 126 @test size(equidistant_grid(0.0, 1.0, 4)) == (4,)