Skip to content

Commit 44456aa

Browse files
committed
add dimension test
1 parent 658893e commit 44456aa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/sectors.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ end
5252
end
5353
end
5454

55+
@testsuite "fusion and dimensions" I -> begin
56+
for a in smallset(I), b in smallset(I)
57+
da = dim(a)
58+
db = dim(b)
59+
dc = sum(c -> dim(c) * Nsymbol(a, b, c), a b)
60+
@test da * db dc # needs to be ≈ because of anyons
61+
end
62+
end
63+
5564
@testsuite "fusion tensor and F-move" I -> begin
5665
(BraidingStyle(I) isa Bosonic && hasfusiontensor(I)) || return nothing
5766
for a in smallset(I), b in smallset(I), c in smallset(I)

0 commit comments

Comments
 (0)