File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
name = " ApproxFunBase"
2
2
uuid = " fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3
- version = " 0.8.16 "
3
+ version = " 0.8.17 "
4
4
5
5
[deps ]
6
6
AbstractFFTs = " 621f4979-c628-5d54-868e-fcf4e3e8185c"
Original file line number Diff line number Diff line change @@ -10,9 +10,13 @@ function show(io::IO, f::Fun)
10
10
print (io," )" )
11
11
end
12
12
13
+ evalconst (f, :: AnyDomain ) = f (0.0 )
14
+ evalconst (f, d) = f (leftendpoint (d))
15
+ evalconst (f, d:: Point ) = f (d)
16
+
13
17
function show (io:: IO ,f:: Fun{<:Union{ConstantSpace, ArraySpace{<:ConstantSpace}}} )
14
18
d = domain (f)
15
- print (io, f (d isa AnyDomain ? 0.0 : leftendpoint (d )))
19
+ print (io, evalconst (f, domain (f )))
16
20
print (io, d isa AnyDomain ? " anywhere" : " on " * string (d))
17
21
end
18
22
Original file line number Diff line number Diff line change 52
52
53
53
f = Fun (ApproxFunBase. ArraySpace ([ConstantSpace (0 .. 1 )]), [3 ])
54
54
@test contains (repr (f), repr (f (0 )))
55
+
56
+ f = Fun (1 , ConstantSpace (Point (3 )))
57
+ @test contains (repr (f), repr (Point (3 )))
58
+ @test contains (repr (f), repr (1 ))
55
59
end
56
60
@testset " Operator" begin
57
61
@testset " QuotientSpace" begin
You can’t perform that action at this time.
0 commit comments