Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple tests for functions in Qobj #33

Open
MrRobot2211 opened this issue Aug 4, 2021 · 2 comments
Open

Add simple tests for functions in Qobj #33

MrRobot2211 opened this issue Aug 4, 2021 · 2 comments

Comments

@MrRobot2211
Copy link
Collaborator

We should add some simple tests to check that everything is properly dispatched.

@AGaliciaMartinez
Copy link
Member

Maybe there is a way of doing this with the tests in QuTiP. I was thinking that TestMul should assert False if the tested specialisations are not included in the proper dispatcher.

@jakelishman
Copy link
Member

test_mathematics.py is meant to by unit tests that each concrete specialisation is implemented correctly. The tests of whether the dispatcher is working correctly would be somewhere else, especially because the intent is to have dispatch rules, which may mean that even an exact type match wouldn't get dispatched to the same function.

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

No branches or pull requests

3 participants