Skip to content

Commit d60a53d

Browse files
committed
Update tests
PR review by Mark Kittisopikul
1 parent 12aa51c commit d60a53d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/b-splines/linear.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ struct Linear{BC<:Union{Throw{OnGrid},Periodic{OnCell}}} <: DegreeBC{1}
22
bc::BC
33
end
44

5-
(deg::Linear)(gt::GridType) = Linear(deg.bc(gt))
65
Linear() = Linear(Throw(OnGrid()))
76
Linear(::Periodic{Nothing}) = Linear(Periodic(OnCell()))
87

test/b-splines/constant.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,10 @@
126126
for T in (Nearest, Previous, Next)
127127
it = Constant{T}()
128128
@test it isa Constant{T, Throw{OnGrid}}
129+
@test "$it" == "Constant{$T}()"
129130
it = Constant{T}(Periodic())
130131
@test it isa Constant{T, Periodic{OnCell}}
132+
@test "$it" == "Constant{$T}(Periodic(OnCell()))"
131133
end
132134

133135
for (constructor, copier) in ((interpolate, x -> x), (interpolate!, copy))

0 commit comments

Comments
 (0)