File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,10 @@ function show(io::IO, f::Fun)
10
10
print (io," )" )
11
11
end
12
12
13
- function show (io:: IO ,f:: Fun{<:ConstantSpace} )
14
- print (io, only (coefficients (f)))
13
+ function show (io:: IO ,f:: Fun{<:Union{ConstantSpace, ArraySpace{<:ConstantSpace}}} )
15
14
d = domain (f)
16
- if d isa AnyDomain
17
- print (io, " anywhere" )
18
- else
19
- print (io, " on " , d)
20
- end
15
+ print (io, f (d isa AnyDomain ? 0.0 : leftendpoint (d)))
16
+ print (io, d isa AnyDomain ? " anywhere" : " on " * string (d))
21
17
end
22
18
23
19
# # MultivariateFun
Original file line number Diff line number Diff line change 44
44
@test contains (s, repr (coefficients (f)))
45
45
46
46
f = Fun (ConstantSpace (0 .. 1 ), [2 ])
47
- @test contains (repr (f), repr (coefficient (f, 1 )))
47
+ @test contains (repr (f), repr (f ( 0 )))
48
48
@test contains (repr (f), repr (domain (f)))
49
49
50
50
f = Fun (ConstantSpace (), [2 ])
51
- @test contains (repr (f), repr (coefficient (f, 1 )))
51
+ @test contains (repr (f), repr (f (0 )))
52
+
53
+ f = Fun (ApproxFunBase. ArraySpace ([ConstantSpace (0 .. 1 )]), [3 ])
54
+ @test contains (repr (f), repr (f (0 )))
52
55
end
53
56
@testset " Operator" begin
54
57
@testset " QuotientSpace" begin
You can’t perform that action at this time.
0 commit comments