Fixes #9 . I created some basic tests for the instantiation of the classes in parser.py similar to test_arithmetic.py.
I also created a test (test_qasm_examples.py that verifies that all examples are parsed correctly. So checking that example.qasm - > str -> QasmProgram -> str -> example.qasm. Although this test fails now because some stuff is still missing from QasmProgram if I understand correctly. It's a start I guess.
Fixes #9 . I created some basic tests for the instantiation of the classes in
parser.py
similar totest_arithmetic.py
. I also created a test (test_qasm_examples.py
that verifies that all examples are parsed correctly. So checking thatexample.qasm
- >str
->QasmProgram
->str
->example.qasm
. Although this test fails now because some stuff is still missing from QasmProgram if I understand correctly. It's a start I guess.