Skip to content

Commit 7f01306

Browse files
committed
add left/rightoneunit test for other Sectors
1 parent ae10a73 commit 7f01306

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/spaces.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ println("------------------------------------")
209209
W = @constinferred GradedSpace(one(I) => 1)
210210
@test W == GradedSpace(one(I) => 1, randsector(I) => 0)
211211
@test @constinferred(oneunit(V)) == W == oneunit(typeof(V))
212+
@test @constinferred(leftoneunit(V)) == oneunit(V) ==
213+
@constinferred(rightoneunit(V))
212214
@test @constinferred(zero(V)) == GradedSpace(one(I) => 0)
213215
# randsector never returns trivial sector, so this cannot error
214216
@test_throws ArgumentError GradedSpace(one(I) => 1, randsector(I) => 0, one(I) => 3)

0 commit comments

Comments
 (0)