co9olguy / qdata

1 stars 3 forks source link

Parser tests #11

Closed therooler closed 4 years ago

therooler commented 4 years ago

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.

co9olguy commented 4 years ago

Awesome, thanks @therooler!