Skip to content

Commit

Permalink
Actually increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
zrho committed Jan 13, 2025
1 parent 232eabf commit 03c0f83
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
11 changes: 7 additions & 4 deletions hugr-core/tests/snapshots/model__roundtrip_cfg.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-cfg.
[%4] [%5]
(signature (-> [?0] [(adt [[?0]])] (ext)))
(tag 0 [%4] [%5] (signature (-> [?0] [(adt [[?0]])] (ext))))))
(block [%6] [%3]
(signature (-> [(ctrl [?0])] [(ctrl [?0])] (ext)))
(block [%6] [%3 %9]
(signature (-> [(ctrl [?0])] [(ctrl [?0]) (ctrl [?0])] (ext)))
(dfg
[%7] [%8]
(signature (-> [?0] [(adt [[?0]])] (ext)))
(tag 0 [%7] [%8] (signature (-> [?0] [(adt [[?0]])] (ext))))))))))
(signature (-> [?0] [(adt [[?0] [?0]])] (ext)))
(tag
0
[%7] [%8]
(signature (-> [?0] [(adt [[?0] [?0]])] (ext))))))))))
8 changes: 4 additions & 4 deletions hugr-model/tests/fixtures/model-cfg.edn
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
(signature (-> [?a] [?a] (ext)))
(cfg [%2] [%4]
(signature (-> [(ctrl [?a])] [(ctrl [?a])] (ext)))
(block [%2] [%4]
(signature (-> [(ctrl [?a])] [(ctrl [?a])] (ext)))
(block [%2] [%4 %2]
(signature (-> [(ctrl [?a])] [(ctrl [?a]) (ctrl [?a])] (ext)))
(dfg [%5] [%6]
(signature (-> [?a] [(adt [[?a]])] (ext)))
(signature (-> [?a] [(adt [[?a] [?a]])] (ext)))
(tag 0 [%5] [%6]
(signature (-> [?a] [(adt [[?a]])] (ext))))))))))
(signature (-> [?a] [(adt [[?a] [?a]])] (ext))))))))))

0 comments on commit 03c0f83

Please sign in to comment.