Mercurial > repos > public > sbplib_julia
comparison test/Grids/equidistant_grid_test.jl @ 1687:3ac94e8f28b3 feature/grids/curvilinear
Allow calling equidistant_grid with tuples of lenght 1
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 21 Aug 2024 19:23:42 +0200 |
parents | 5f348cc5598e |
children | a4c52ae93b11 b5690ab5f0b8 |
comparison
equal
deleted
inserted
replaced
1684:22a9992471be | 1687:3ac94e8f28b3 |
---|---|
110 | 110 |
111 | 111 |
112 @testset "equidistant_grid" begin | 112 @testset "equidistant_grid" begin |
113 @test equidistant_grid(0.0,1.0, 4) isa EquidistantGrid | 113 @test equidistant_grid(0.0,1.0, 4) isa EquidistantGrid |
114 @test equidistant_grid((0.0,0.0),(8.0,5.0), 4, 3) isa TensorGrid | 114 @test equidistant_grid((0.0,0.0),(8.0,5.0), 4, 3) isa TensorGrid |
115 @test equidistant_grid((0.0,),(8.0,), 4) isa TensorGrid | |
115 | 116 |
116 # constuctor | 117 # constuctor |
117 @test_throws DomainError equidistant_grid(0.0, 1.0, 0) | 118 @test_throws DomainError equidistant_grid(0.0, 1.0, 0) |
118 @test_throws DomainError equidistant_grid(1.0, 1.0, 1) | 119 @test_throws DomainError equidistant_grid(1.0, 1.0, 1) |
119 @test_throws DomainError equidistant_grid(1.0, -1.0, 1) | 120 @test_throws DomainError equidistant_grid(1.0, -1.0, 1) |