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.
1 parent baa5991 commit 7a16987Copy full SHA for 7a16987
test/symmetries/spaces.jl
@@ -226,8 +226,9 @@ end
226
@test dim(@constinferred(zerospace(V))) == 0
227
# space with unit(s), always test as if multifusion
228
W = @constinferred GradedSpace(unit => 1 for unit in allunits(I))
229
- dict = Dict((unit => 1 for unit in allunits(I))...)
+ dict = Dict(unit => 1 for unit in allunits(I))
230
@test W == GradedSpace(dict)
231
+ @test W == GradedSpace(push!(dict, randsector(I) => 0))
232
@test @constinferred(zerospace(V)) == GradedSpace(unit => 0 for unit in allunits(I))
233
randunit = rand(collect(allunits(I)))
234
@test_throws ArgumentError("Sector $(randunit) appears multiple times") GradedSpace(randunit => 1, randunit => 3)
0 commit comments