Skip to content

Commit 7a16987

Browse files
borisdevosJutho
andauthored
Update test/symmetries/spaces.jl
Co-authored-by: Jutho <[email protected]>
1 parent baa5991 commit 7a16987

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/symmetries/spaces.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,9 @@ end
226226
@test dim(@constinferred(zerospace(V))) == 0
227227
# space with unit(s), always test as if multifusion
228228
W = @constinferred GradedSpace(unit => 1 for unit in allunits(I))
229-
dict = Dict((unit => 1 for unit in allunits(I))...)
229+
dict = Dict(unit => 1 for unit in allunits(I))
230230
@test W == GradedSpace(dict)
231+
@test W == GradedSpace(push!(dict, randsector(I) => 0))
231232
@test @constinferred(zerospace(V)) == GradedSpace(unit => 0 for unit in allunits(I))
232233
randunit = rand(collect(allunits(I)))
233234
@test_throws ArgumentError("Sector $(randunit) appears multiple times") GradedSpace(randunit => 1, randunit => 3)

0 commit comments

Comments
 (0)