@@ -66,14 +66,14 @@ println("------------------------------------")
6666 @test length (sectors (V)) == 1
6767 @test @constinferred (TensorKit. hassector (V, Trivial ()))
6868 @test @constinferred (dim (V)) == d == @constinferred (dim (V, Trivial ()))
69- @test dim (@constinferred (zero (V))) == 0
70- @test (sectors (zero (V))... ,) == ()
69+ @test dim (@constinferred (zerospace (V))) == 0
70+ @test (sectors (zerospace (V))... ,) == ()
7171 @test @constinferred (TensorKit. axes (V)) == Base. OneTo (d)
7272 @test ℝ^ d == ℝ[](d) == CartesianSpace (d) == typeof (V)(d)
7373 W = @constinferred ℝ^ 1
7474 @test @constinferred (unitspace (V)) == W == unitspace (typeof (V))
75- @test @constinferred (zero (V)) == ℝ^ 0 == zero (typeof (V))
76- @test @constinferred (⊕ (V, zero (V))) == V
75+ @test @constinferred (zerospace (V)) == ℝ^ 0 == zerospace (typeof (V))
76+ @test @constinferred (⊕ (V, zerospace (V))) == V
7777 @test @constinferred (⊕ (V, V)) == ℝ^ (2 d)
7878 @test @constinferred (⊕ (V, unitspace (V))) == ℝ^ (d + 1 )
7979 @test @constinferred (⊕ (V, V, V, V)) == ℝ^ (4 d)
@@ -113,14 +113,14 @@ println("------------------------------------")
113113 @test length (sectors (V)) == 1
114114 @test @constinferred (TensorKit. hassector (V, Trivial ()))
115115 @test @constinferred (dim (V)) == d == @constinferred (dim (V, Trivial ()))
116- @test dim (@constinferred (zero (V))) == 0
117- @test (sectors (zero (V))... ,) == ()
116+ @test dim (@constinferred (zerospace (V))) == 0
117+ @test (sectors (zerospace (V))... ,) == ()
118118 @test @constinferred (TensorKit. axes (V)) == Base. OneTo (d)
119119 @test ℂ^ d == Vect[Trivial](d) == Vect[](Trivial () => d) == ℂ[](d) == typeof (V)(d)
120120 W = @constinferred ℂ^ 1
121121 @test @constinferred (unitspace (V)) == W == unitspace (typeof (V))
122- @test @constinferred (zero (V)) == ℂ^ 0 == zero (typeof (V))
123- @test @constinferred (⊕ (V, zero (V))) == V
122+ @test @constinferred (zerospace (V)) == ℂ^ 0 == zerospace (typeof (V))
123+ @test @constinferred (⊕ (V, zerospace (V))) == V
124124 @test @constinferred (⊕ (V, V)) == ℂ^ (2 d)
125125 @test_throws SpaceMismatch (⊕ (V, V' ))
126126 # promote_except = ErrorException("promotion of types $(typeof(ℝ^d)) and " *
@@ -204,12 +204,12 @@ println("------------------------------------")
204204 @test eval (Meta. parse (sprint (show, V))) == V
205205 @test eval (Meta. parse (sprint (show, typeof (V)))) == typeof (V)
206206 # space with no sectors
207- @test dim (@constinferred (zero (V))) == 0
207+ @test dim (@constinferred (zerospace (V))) == 0
208208 # space with a single sector
209209 W = @constinferred GradedSpace (unit (I) => 1 )
210210 @test W == GradedSpace (unit (I) => 1 , randsector (I) => 0 )
211211 @test @constinferred (unitspace (V)) == W == unitspace (typeof (V))
212- @test @constinferred (zero (V)) == GradedSpace (unit (I) => 0 )
212+ @test @constinferred (zerospace (V)) == GradedSpace (unit (I) => 0 )
213213 # randsector never returns trivial sector, so this cannot error
214214 @test_throws ArgumentError GradedSpace (unit (I) => 1 , randsector (I) => 0 , unit (I) => 3 )
215215 @test eval (Meta. parse (sprint (show, W))) == W
@@ -231,7 +231,7 @@ println("------------------------------------")
231231 if hasfusiontensor (I)
232232 @test @constinferred (TensorKit. axes (V)) == Base. OneTo (dim (V))
233233 end
234- @test @constinferred (⊕ (V, zero (V))) == V
234+ @test @constinferred (⊕ (V, zerospace (V))) == V
235235 @test @constinferred (⊕ (V, V)) == Vect[I](c => 2 dim (V, c) for c in sectors (V))
236236 @test @constinferred (⊕ (V, V, V, V)) == Vect[I](c => 4 dim (V, c) for c in sectors (V))
237237 @test @constinferred (⊕ (V, unitspace (V))) ==
0 commit comments