Skip to content

[CQT-466] Increase test coverage - #709

Open
rares1609 wants to merge 2 commits into
developfrom
CQT-466-Increase-test-coverage
Open

[CQT-466] Increase test coverage#709
rares1609 wants to merge 2 commits into
developfrom
CQT-466-Increase-test-coverage

Conversation

@rares1609

Copy link
Copy Markdown
Contributor

No description provided.

@rares1609
rares1609 requested a review from elenbaasc August 26, 2026 15:27
@elenbaasc elenbaasc changed the title [CQT-466]: Improve coverage [CQT-466] Increase test coverage Aug 28, 2026
Comment on lines +113 to +115
def test_eq_only_one_has_rotations(self, semantic_with_rotations: CanonicalGateSemantic) -> None:
assert semantic_with_rotations != CanonicalGateSemantic((0.25, 0.25, 0.25))
assert CanonicalGateSemantic((0.25, 0.25, 0.25)) != semantic_with_rotations

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't understand the point of these asserts?

Comment thread tests/ir/test_ir.py
Comment on lines +107 to +108
def test_eq_different_type(self) -> None:
assert IR() != "not an IR"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is too obvious to be a test.

Comment thread tests/ir/test_ir.py
Comment on lines +110 to +111
def test_repr(self) -> None:
assert repr(IR()) == "IR: []"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Would be more interesting (better test), to add some statements. This will force one to make sure to define a __repr__ method for each statement.

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.

2 participants