Skip to content

Commit 6a26ce7

Browse files
committed
Add tests for pipe chaining
1 parent d1ce83e commit 6a26ce7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Interpolations.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ struct InPlaceQ{GT<:Union{GridType,Nothing}} <: BoundaryCondition gt::GT end
109109
const Natural = Line
110110

111111
(::Type{BC})() where BC<:BoundaryCondition = BC(nothing)
112-
# (::Type{BC})(::Type{GT}) where {GT <: GridType, BC<:BoundaryCondition} = BC{GT}(GT())
113-
for BC in (:Throw, :Flat, :Line, :Free, :Reflect, :InPlace)
112+
for BC in (:Throw, :Flat, :Line, :Free, :Reflect, :InPlace, :InPlaceQ, :Periodic)
114113
eval(quote
115114
$BC(::Type{GT}) where GT <: GridType = $BC{GT}(GT())
116115
$BC{GT}(::Type{GT}) where GT <: GridType = $BC{GT}(GT())

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const isci = get(ENV, "CI", "") in ("true", "True")
5050
include("convenience-constructors.jl")
5151
include("readme-examples.jl")
5252
include("iterate.jl")
53+
include("pipes.jl")
5354

5455
# Chain rules interaction
5556
include("chainrules.jl")

0 commit comments

Comments
 (0)