Mercurial > repos > public > sbplib_julia
comparison test/Grids/equidistant_grid_test.jl @ 1701:74f051444e0e
Make equidistant_grid() for 1D more restrictive in the types it accepts
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 03 Sep 2024 23:51:34 +0200 |
parents | 5f348cc5598e |
children | a4c52ae93b11 b5690ab5f0b8 |
comparison
equal
deleted
inserted
replaced
1676:5a1f51b4e3d9 | 1701:74f051444e0e |
---|---|
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) |