Add a reusable test suite #40
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR defines a more reusable testsuite to allow downstream packages like SUNRepresentations.jl or CategoryData.jl to have a more robust and up to date testing framework, without having to duplicate all of the code.
Additionally, since this package defines an interface, it does make sense that it should also define the tests to verify whether or not an implementation adheres to that interface.
Overall this should make it easier to define new sector types for which we are confident that they work with TensorKit.
I additionally added:
I've tested this, and at least locally the following workflow seems to work very well:
For now, I've left the multi-fusion tests for follow-up work, since this wasn't entirely obvious how to fit that in without making large changes, as there are quite a few hard-coded things in there.