Mercurial > repos > public > sbplib_julia
comparison test/Grids/equidistant_grid_test.jl @ 1678:13a7a4ff49e3 feature/grids/manifolds
Merge feature/grids/curvilinear
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sun, 30 Jun 2024 10:50:44 +0200 |
parents | 8250cf5a3ce9 5f348cc5598e |
children | a4c52ae93b11 |
comparison
equal
deleted
inserted
replaced
1650:8250cf5a3ce9 | 1678:13a7a4ff49e3 |
---|---|
53 end | 53 end |
54 | 54 |
55 @testset "inverse_spacing" begin | 55 @testset "inverse_spacing" begin |
56 @test inverse_spacing(EquidistantGrid(0:10)) == 1 | 56 @test inverse_spacing(EquidistantGrid(0:10)) == 1 |
57 @test inverse_spacing(EquidistantGrid(0:0.1:10)) == 10 | 57 @test inverse_spacing(EquidistantGrid(0:0.1:10)) == 10 |
58 end | |
59 | |
60 @testset "min_spacing" begin | |
61 @test min_spacing(EquidistantGrid(0:10)) == 1 | |
62 @test min_spacing(EquidistantGrid(0:0.1:10)) == 0.1 | |
58 end | 63 end |
59 | 64 |
60 @testset "boundary_identifiers" begin | 65 @testset "boundary_identifiers" begin |
61 g = EquidistantGrid(0:0.1:10) | 66 g = EquidistantGrid(0:0.1:10) |
62 @test boundary_identifiers(g) == (Lower(), Upper()) | 67 @test boundary_identifiers(g) == (Lower(), Upper()) |