Mercurial > repos > public > sbplib_julia
comparison test/Grids/equidistant_grid_test.jl @ 1650:8250cf5a3ce9 feature/grids/manifolds
Merge feature/grids/curvilinear
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Jun 2024 12:42:28 +0200 |
parents | d4a6f9effcdd 3e7438e2a033 |
children | 13a7a4ff49e3 |
comparison
equal
deleted
inserted
replaced
1644:e213bd857f3f | 1650:8250cf5a3ce9 |
---|---|
116 | 116 |
117 @test_throws DomainError equidistant_grid((0.0,0.0),(1.0,1.0), 0, 0) | 117 @test_throws DomainError equidistant_grid((0.0,0.0),(1.0,1.0), 0, 0) |
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 @test_throws DomainError equidistant_grid((1.0,1.0),(-1.0,-1.0), 1, 1) | 119 @test_throws DomainError equidistant_grid((1.0,1.0),(-1.0,-1.0), 1, 1) |
120 | 120 |
121 @test_throws ArgumentError equidistant_grid((0.0,),(8.0,5.0), 4, 3, 4) | |
122 | |
121 @testset "Base" begin | 123 @testset "Base" begin |
122 @test eltype(equidistant_grid(0.0, 1.0, 4)) == Float64 | 124 @test eltype(equidistant_grid(0.0, 1.0, 4)) == Float64 |
123 @test eltype(equidistant_grid((0,0),(1,3), 4, 3)) <: AbstractVector{Float64} | 125 @test eltype(equidistant_grid((0,0),(1,3), 4, 3)) <: AbstractVector{Float64} |
124 | 126 |
125 @test size(equidistant_grid(0.0, 1.0, 4)) == (4,) | 127 @test size(equidistant_grid(0.0, 1.0, 4)) == (4,) |