We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TensorSpace
1 parent ec4e732 commit 93a0086Copy full SHA for 93a0086
src/show.jl
@@ -171,7 +171,7 @@ function show(io::IO,s::TensorSpace)
171
d = length(s.spaces)
172
for i=1:d-1
173
show(io,s.spaces[i])
174
- print(io,"⊗")
+ print(io," ⊗ ")
175
end
176
show(io,s.spaces[d])
177
test/show.jl
@@ -14,6 +14,13 @@
14
@test contains(repr(c), "ConstantSpace")
15
@test contains(repr(c), repr(domain(c)))
16
17
+ @testset "TensorSpace" begin
18
+ S1 = PointSpace(1:3)
19
+ S = S1 ⊗ S1
20
+ v = strip.(split(repr(S), '⊗'))
21
+ @test length(v) == 2
22
+ @test all(==(repr(S1)), v)
23
+ end
24
25
@testset "Fun" begin
26
f = Fun(PointSpace(1:3), [1,2,3])
0 commit comments