Skip to content

use expression compare instead of print as string #11

@Roger-luo

Description

@Roger-luo

use the isapprox implemented here: https://github.com/QuantumBFS/OpenQASM.jl/blob/master/test/runtests.jl#L325

the printing doesn't guarantee equivalence

@test "$(ast.prog[i])" == "$(ast1.prog[i])"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions