File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
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.32 "
3
+ version = " 0.8.33 "
4
4
5
5
[deps ]
6
6
AbstractFFTs = " 621f4979-c628-5d54-868e-fcf4e3e8185c"
Original file line number Diff line number Diff line change 99
99
function show (io:: IO , mimetype:: MIME"text/plain" , @nospecialize (B:: Operator ); header:: Bool = true )
100
100
header && summary (io, B)
101
101
102
+ if ! haskey (io, :compact ) && size (B, 2 ) > 1
103
+ io = IOContext (io, :compact => true )
104
+ end
105
+
102
106
if ! isambiguous (domainspace (B)) && eltype (B) <: Number
103
107
println (io)
104
108
sz1, sz2 = min .(size (B), 10 )
Original file line number Diff line number Diff line change 74
74
s = summary (A)
75
75
@test startswith (s, " ConstantOperator" )
76
76
end
77
+ @testset " compact show" begin
78
+ p = [1 + 1e-8 ];
79
+ M = Multiplication (Fun (PointSpace (p)), PointSpace (p));
80
+ s = sprint (show, MIME " text/plain" (), M)
81
+ @test s == " FiniteOperator : PointSpace([1.00000001]) → PointSpace([1.00000001])\n 1.00000001"
82
+ p = [1 + 1e-8 , 2 + 1e-8 ];
83
+ M = Multiplication (Fun (PointSpace (p)), PointSpace (p));
84
+ s = sprint (show, MIME " text/plain" (), M)
85
+ @test s == (" FiniteOperator : PointSpace([1.00000001, 2.00000001]) → PointSpace([1.00000001, 2.00000001])" *
86
+ " \n 1.0 ⋅ \n ⋅ 2.0" )
87
+ end
77
88
end
78
89
@testset " Iterators" begin
79
90
B = ApproxFunBase. BlockInterlacer ((Ones {Int} (2 ), Ones {Int} (2 )))
You can’t perform that action at this time.
0 commit comments