Skip to content

Commit 5a8ee7e

Browse files
authored
fallbacks in isleftendpoint/isrightendpoint (#453)
1 parent 49a3936 commit 5a8ee7e

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunBase"
22
uuid = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3-
version = "0.8.15"
3+
version = "0.8.16"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/Operators/functionals/Evaluation.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ evaluation_point(C::Evaluation) = C.x
99

1010
@enum Boundary RightEndPoint=1 LeftEndPoint=-1
1111

12+
isleftendpoint(_) = false
13+
isrightendpoint(_) = false
1214
isleftendpoint(::typeof(leftendpoint)) = true
1315
isrightendpoint(::typeof(rightendpoint)) = true
1416
isrightendpoint(x::Boundary) = x == RightEndPoint

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,9 +669,13 @@ end
669669

670670
@testset "Evaluation left/rightendpoint" begin
671671
@test ApproxFunBase.isleftendpoint(ApproxFunBase.LeftEndPoint)
672+
@test !ApproxFunBase.isrightendpoint(ApproxFunBase.LeftEndPoint)
672673
@test ApproxFunBase.isrightendpoint(ApproxFunBase.RightEndPoint)
674+
@test !ApproxFunBase.isleftendpoint(ApproxFunBase.RightEndPoint)
673675
@test ApproxFunBase.isleftendpoint(leftendpoint)
676+
@test !ApproxFunBase.isrightendpoint(leftendpoint)
674677
@test ApproxFunBase.isrightendpoint(rightendpoint)
678+
@test !ApproxFunBase.isleftendpoint(rightendpoint)
675679
end
676680

677681
@time include("ETDRK4Test.jl")

0 commit comments

Comments
 (0)