Skip to content

Tests for shapes of topological data - #64

Merged
lkdvos merged 19 commits into
mainfrom
bd/shapes
Sep 8, 2026
Merged

lkdvos merged 19 commits into
mainfrom
bd/shapes

Conversation

@borisdevos

Copy link
Copy Markdown
Member

Tackles #60. As left as comment, CategoryData stores the GenericFusion topological data as sparse arrays, so this will fail. Not sure if it's sufficient to just check whether everything's a subtype of AbstractArray{T, N}?

I also had some fusion ring checks lying around and decided to add them. It might be overkill, since it'll be a bunch of 0=0 or 1=1 equations 🫠

@codecov

codecov Bot commented Feb 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread test/sectors.jl Outdated
Comment thread test/sectors.jl
@borisdevos
borisdevos requested review from Jutho and lkdvos March 23, 2026 12:44
Comment thread test/sectors.jl Outdated
Comment thread test/sectors.jl
@borisdevos

Copy link
Copy Markdown
Member Author

I'm not sure what's the best way to check invalid fusion channels. I first separated it completely from the shape of Fsymbol test, but then put it back in since I kind of want to check the four fusion vertices of a potentially valid F-move.

@borisdevos
borisdevos requested a review from lkdvos April 1, 2026 14:58

@lkdvos lkdvos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall definitely looks good! I think there are some slight improvements that can still be made with the loop order to avoid double-checking things, but otherwise this seems good to go

Comment thread test/sectors.jl Outdated
Comment on lines +94 to +96
for f in smallset(I)
can_fuse(a, f) || @test_throws ArgumentError Nsymbol(a, f, r)
end

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this loop does not depend on c or b so is needlessly repeated quite often. Additionally, since smallset is deterministic (I think?), all of these tests are permutations of the same set of tests, so probably this can be simplified quite a bit.

Comment thread test/sectors.jl
@lkdvos lkdvos linked an issue Sep 8, 2026 that may be closed by this pull request
2 tasks
@borisdevos

Copy link
Copy Markdown
Member Author

There's no cleaner way to avoiding double checks than just separating them I believe, so I ended up going back to that

Comment thread test/sectors.jl Outdated
@lkdvos
lkdvos merged commit 09e76e6 into main Sep 8, 2026
12 checks passed
@lkdvos
lkdvos deleted the bd/shapes branch September 8, 2026 16:43
@lkdvos lkdvos mentioned this pull request Oct 1, 2026
lkdvos referenced this pull request Oct 1, 2026
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TestSuite] Shape of topological data

2 participants