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
Missing tests for gen_pauli_x
and gen_pauli_z
#485
Comments
@vprusso Looking at the commit history for both functions, I don't think the tests for these functions were added. Wanted to double-check with you as to what might have happened. Maybe the tests got lost in other modules? |
shift
and clock
shift
and clock
Looking through the old commits, I don't see the tests in the previous We changed the directory in #257 and if I look at another PR #255 merged before the restructured directory, the tests don't exist where we expect them to be. https://github.com/vprusso/toqito/tree/63c86059f06f994e23be93f3a4626c0b1717b464/tests/test_matrices Maybe this is also a |
Maybe toqito/toqito/matrices/gen_pauli.py Lines 74 to 75 in eb58207
|
Hmm, so I think these are covered because there is a test for But yes, having a few specific tests for them explicitly might be a good idea, just to be more thorough and explicit. |
shift
and clock
gen_pauli_x
and gen_pauli_z
To close this issue after #478 is merged, in the folder List of all possible tests:
It might also be better to use the parameterized option in pytest to consolidate a bunch of identical tests. Here's an example test in toqito/toqito/perms/tests/test_antisymmetric_projection.py Lines 19 to 32 in eb58207
|
Related to #478
Tests for these functions are missing from
toqito/matrices/tests
matrices/tests
matrices/
https://github.com/vprusso/toqito/tree/eb5820721884dae5b9fdaad68913b2d96785167d/toqito/matrices/tests
Interestingly enough, both these functions are not flagged as uncovered by
pytest
.This issue is to find where the tests for these functions are or add files to test them. If it's the latter, need to figure out why
pytest
is not flagging these.The text was updated successfully, but these errors were encountered: