Skip to content

Commit

Permalink
Testing extra cases
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Matthew Treinish <[email protected]>
  • Loading branch information
1ucian0 and mtreinish committed Sep 5, 2023
1 parent 4a02954 commit c410d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/python/qasm2/test_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TestWhitespace(QiskitTestCase):
def test_allows_empty(self):
self.assertEqual(qiskit.qasm2.loads(""), QuantumCircuit())

@ddt.data("", "\n", "\r\n", "\n ")
@ddt.data("", "\n", "\r\n", "\n ", "\n\t", "\r\n\t")
def test_empty_except_comment(self, terminator):
program = "// final comment" + terminator
self.assertEqual(qiskit.qasm2.loads(program), QuantumCircuit())
Expand Down

0 comments on commit c410d75

Please sign in to comment.