Skip to content

Commit

Permalink
Improved test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
zrho committed Jan 13, 2025
1 parent f5a0943 commit dfb2f14
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hugr-core/tests/snapshots/model__roundtrip_constraints.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-cons
(forall ?0 type)
(where (nonlinear ?0))
[(@ prelude.Array ?0)] [(@ prelude.Array ?0) (@ prelude.Array ?0)] (ext))

(define-func util.copy
(forall ?0 type)
(where (nonlinear ?0))
[?0] [?0 ?0] (ext)
(dfg [%0] [%0 %0] (signature (-> [?0] [?0 ?0] (ext)))))
7 changes: 7 additions & 0 deletions hugr-model/tests/fixtures/model-constraints.edn
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@
(forall ?t type)
(where (nonlinear ?t))
[(@ prelude.Array ?t)] [(@ prelude.Array ?t) (@ prelude.Array ?t)] (ext))

(define-func util.copy
(forall ?t type)
(where (nonlinear ?t))
[?t] [?t ?t] (ext)
(dfg [%0] [%0 %0]
(signature (-> [?t] [?t ?t] (ext)))))

0 comments on commit dfb2f14

Please sign in to comment.