@@ -65,14 +65,14 @@ println("------------------------------------")
6565 @test length (sectors (V)) == 1
6666 @test @constinferred (TensorKit. hassector (V, Trivial ()))
6767 @test @constinferred (dim (V)) == d == @constinferred (dim (V, Trivial ()))
68- @test dim (@constinferred (zero (V))) == 0
69- @test (sectors (zero (V))... ,) == ()
68+ @test dim (@constinferred (zerospace (V))) == 0
69+ @test (sectors (zerospace (V))... ,) == ()
7070 @test @constinferred (TensorKit. axes (V)) == Base. OneTo (d)
7171 @test ℝ^ d == ℝ[](d) == CartesianSpace (d) == typeof (V)(d)
7272 W = @constinferred ℝ^ 1
7373 @test @constinferred (unitspace (V)) == W == unitspace (typeof (V))
74- @test @constinferred (zero (V)) == ℝ^ 0 == zero (typeof (V))
75- @test @constinferred (⊕ (V, zero (V))) == V
74+ @test @constinferred (zerospace (V)) == ℝ^ 0 == zerospace (typeof (V))
75+ @test @constinferred (⊕ (V, zerospace (V))) == V
7676 @test @constinferred (⊕ (V, V)) == ℝ^ (2 d)
7777 @test @constinferred (⊕ (V, unitspace (V))) == ℝ^ (d + 1 )
7878 @test @constinferred (⊕ (V, V, V, V)) == ℝ^ (4 d)
@@ -111,14 +111,14 @@ println("------------------------------------")
111111 @test length (sectors (V)) == 1
112112 @test @constinferred (TensorKit. hassector (V, Trivial ()))
113113 @test @constinferred (dim (V)) == d == @constinferred (dim (V, Trivial ()))
114- @test dim (@constinferred (zero (V))) == 0
115- @test (sectors (zero (V))... ,) == ()
114+ @test dim (@constinferred (zerospace (V))) == 0
115+ @test (sectors (zerospace (V))... ,) == ()
116116 @test @constinferred (TensorKit. axes (V)) == Base. OneTo (d)
117117 @test ℂ^ d == Vect[Trivial](d) == Vect[](Trivial () => d) == ℂ[](d) == typeof (V)(d)
118118 W = @constinferred ℂ^ 1
119119 @test @constinferred (unitspace (V)) == W == unitspace (typeof (V))
120- @test @constinferred (zero (V)) == ℂ^ 0 == zero (typeof (V))
121- @test @constinferred (⊕ (V, zero (V))) == V
120+ @test @constinferred (zerospace (V)) == ℂ^ 0 == zerospace (typeof (V))
121+ @test @constinferred (⊕ (V, zerospace (V))) == V
122122 @test @constinferred (⊕ (V, V)) == ℂ^ (2 d)
123123 @test_throws SpaceMismatch (⊕ (V, V' ))
124124 # promote_except = ErrorException("promotion of types $(typeof(ℝ^d)) and " *
@@ -202,12 +202,12 @@ println("------------------------------------")
202202 @test eval (Meta. parse (sprint (show, V))) == V
203203 @test eval (Meta. parse (sprint (show, typeof (V)))) == typeof (V)
204204 # space with no sectors
205- @test dim (@constinferred (zero (V))) == 0
205+ @test dim (@constinferred (zerospace (V))) == 0
206206 # space with a single sector
207207 W = @constinferred GradedSpace (unit (I) => 1 )
208208 @test W == GradedSpace (unit (I) => 1 , randsector (I) => 0 )
209209 @test @constinferred (unitspace (V)) == W == unitspace (typeof (V))
210- @test @constinferred (zero (V)) == GradedSpace (unit (I) => 0 )
210+ @test @constinferred (zerospace (V)) == GradedSpace (unit (I) => 0 )
211211 # randsector never returns trivial sector, so this cannot error
212212 @test_throws ArgumentError GradedSpace (unit (I) => 1 , randsector (I) => 0 , unit (I) => 3 )
213213 @test eval (Meta. parse (sprint (show, W))) == W
@@ -228,7 +228,7 @@ println("------------------------------------")
228228 if hasfusiontensor (I)
229229 @test @constinferred (TensorKit. axes (V)) == Base. OneTo (dim (V))
230230 end
231- @test @constinferred (⊕ (V, zero (V))) == V
231+ @test @constinferred (⊕ (V, zerospace (V))) == V
232232 @test @constinferred (⊕ (V, V)) == Vect[I](c => 2 dim (V, c) for c in sectors (V))
233233 @test @constinferred (⊕ (V, V, V, V)) == Vect[I](c => 4 dim (V, c) for c in sectors (V))
234234 @test @constinferred (⊕ (V, oneunit (V))) == Vect[I](c => isunit (c) + dim (V, c) for c in sectors (V))
0 commit comments