Mercurial > repos > public > sbplib_julia
comparison test/Grids/equidistant_grid_test.jl @ 1602:3e7438e2a033 feature/boundary_conditions
Address review comments (1 left to be discussed)
| author | Vidar Stiernström <vidar.stiernstrom@gmail.com> |
|---|---|
| date | Sat, 01 Jun 2024 17:39:54 -0700 |
| parents | 611ae2308aa1 |
| children | 5f348cc5598e 8250cf5a3ce9 7a2375080287 |
comparison
equal
deleted
inserted
replaced
| 1601:fad18896d20a | 1602:3e7438e2a033 |
|---|---|
| 75 | 75 |
| 76 g = EquidistantGrid(2:0.1:10) | 76 g = EquidistantGrid(2:0.1:10) |
| 77 @test boundary_indices(g, Lower()) == (1,) | 77 @test boundary_indices(g, Lower()) == (1,) |
| 78 @test boundary_indices(g, Upper()) == (81,) | 78 @test boundary_indices(g, Upper()) == (81,) |
| 79 | 79 |
| 80 end | |
| 81 | |
| 82 @testset "orthogonal_grid" begin | |
| 83 g = EquidistantGrid(0:0.1:1) | |
| 84 @test orthogonal_grid(g, Lower()) == g | |
| 85 @test orthogonal_grid(g, Upper()) == g | |
| 86 end | 80 end |
| 87 | 81 |
| 88 @testset "refine" begin | 82 @testset "refine" begin |
| 89 g = EquidistantGrid(0:0.1:1) | 83 g = EquidistantGrid(0:0.1:1) |
| 90 @test refine(g, 1) == g | 84 @test refine(g, 1) == g |
