Mercurial > repos > public > sbplib_julia
changeset 732:6114274447f5 feature/selectable_tests
Add missing using and imports in test files
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 17 Mar 2021 21:21:23 +0100 |
parents | dfbdb127d2d8 |
children | e279c53eb647 |
files | test/SbpOperators/boundaryops/boundary_restriction_test.jl test/SbpOperators/boundaryops/normal_derivative_test.jl test/SbpOperators/readoperator_test.jl test/SbpOperators/stencil_test.jl test/SbpOperators/volumeops/derivatives/secondderivative_test.jl test/SbpOperators/volumeops/inner_products/inner_product_test.jl test/SbpOperators/volumeops/inner_products/inverse_inner_product_test.jl test/SbpOperators/volumeops/laplace/laplace_test.jl test/SbpOperators/volumeops/volume_operator_test.jl |
diffstat | 9 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/test/SbpOperators/boundaryops/boundary_restriction_test.jl Wed Mar 17 20:56:47 2021 +0100 +++ b/test/SbpOperators/boundaryops/boundary_restriction_test.jl Wed Mar 17 21:21:23 2021 +0100 @@ -2,6 +2,10 @@ using Sbplib.SbpOperators using Sbplib.Grids +using Sbplib.RegionIndices +using Sbplib.LazyTensors + +import Sbplib.SbpOperators.BoundaryOperator @testset "boundary_restriction" begin op = read_D2_operator(sbp_operators_path()*"standard_diagonal.toml"; order=4)
--- a/test/SbpOperators/boundaryops/normal_derivative_test.jl Wed Mar 17 20:56:47 2021 +0100 +++ b/test/SbpOperators/boundaryops/normal_derivative_test.jl Wed Mar 17 21:21:23 2021 +0100 @@ -2,6 +2,10 @@ using Sbplib.SbpOperators using Sbplib.Grids +using Sbplib.RegionIndices +using Sbplib.LazyTensors + +import Sbplib.SbpOperators.BoundaryOperator @testset "normal_derivative" begin g_1D = EquidistantGrid(11, 0.0, 1.0)
--- a/test/SbpOperators/readoperator_test.jl Wed Mar 17 20:56:47 2021 +0100 +++ b/test/SbpOperators/readoperator_test.jl Wed Mar 17 21:21:23 2021 +0100 @@ -3,6 +3,8 @@ using TOML using Sbplib.SbpOperators +import Sbplib.SbpOperators.Stencil + @testset "parse_rational" begin @test SbpOperators.parse_rational("1") isa Rational
--- a/test/SbpOperators/stencil_test.jl Wed Mar 17 20:56:47 2021 +0100 +++ b/test/SbpOperators/stencil_test.jl Wed Mar 17 21:21:23 2021 +0100 @@ -1,5 +1,6 @@ using Test using Sbplib.SbpOperators +import Sbplib.SbpOperators.Stencil @testset "Stencil" begin s = Stencil((-2,2), (1.,2.,2.,3.,4.))
--- a/test/SbpOperators/volumeops/derivatives/secondderivative_test.jl Wed Mar 17 20:56:47 2021 +0100 +++ b/test/SbpOperators/volumeops/derivatives/secondderivative_test.jl Wed Mar 17 21:21:23 2021 +0100 @@ -2,6 +2,7 @@ using Sbplib.SbpOperators using Sbplib.Grids +using Sbplib.LazyTensors import Sbplib.SbpOperators.VolumeOperator
--- a/test/SbpOperators/volumeops/inner_products/inner_product_test.jl Wed Mar 17 20:56:47 2021 +0100 +++ b/test/SbpOperators/volumeops/inner_products/inner_product_test.jl Wed Mar 17 21:21:23 2021 +0100 @@ -2,6 +2,7 @@ using Sbplib.SbpOperators using Sbplib.Grids +using Sbplib.LazyTensors @testset "Diagonal-stencil inner_product" begin
--- a/test/SbpOperators/volumeops/inner_products/inverse_inner_product_test.jl Wed Mar 17 20:56:47 2021 +0100 +++ b/test/SbpOperators/volumeops/inner_products/inverse_inner_product_test.jl Wed Mar 17 21:21:23 2021 +0100 @@ -2,6 +2,9 @@ using Sbplib.SbpOperators using Sbplib.Grids +using Sbplib.LazyTensors + +import Sbplib.SbpOperators.Stencil @testset "Diagonal-stencil inverse_inner_product" begin Lx = π/2.
--- a/test/SbpOperators/volumeops/laplace/laplace_test.jl Wed Mar 17 20:56:47 2021 +0100 +++ b/test/SbpOperators/volumeops/laplace/laplace_test.jl Wed Mar 17 21:21:23 2021 +0100 @@ -2,6 +2,7 @@ using Sbplib.SbpOperators using Sbplib.Grids +using Sbplib.LazyTensors @testset "Laplace" begin g_1D = EquidistantGrid(101, 0.0, 1.)
--- a/test/SbpOperators/volumeops/volume_operator_test.jl Wed Mar 17 20:56:47 2021 +0100 +++ b/test/SbpOperators/volumeops/volume_operator_test.jl Wed Mar 17 21:21:23 2021 +0100 @@ -2,8 +2,11 @@ using Sbplib.SbpOperators using Sbplib.Grids +using Sbplib.RegionIndices +using Sbplib.LazyTensors import Sbplib.SbpOperators.Stencil +import Sbplib.SbpOperators.VolumeOperator import Sbplib.SbpOperators.volume_operator import Sbplib.SbpOperators.odd import Sbplib.SbpOperators.even