Skip to content

Commit

Permalink
[add] tests for decorations
Browse files Browse the repository at this point in the history
and update some only minutely changed test due to changes in the wiring algorithm
  • Loading branch information
Mc-Zen committed May 2, 2024
1 parent dfb8092 commit 4514dd5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
Binary file added tests/decorations/gategroup/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions tests/decorations/gategroup/test.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#set page(width: auto, height: auto, margin: 0pt)
#import "/src/quill.typ": *

#quantum-circuit(
gategroup(1, 2, label: ((pos: top, content: "A"), (pos: left, content: "B")),), $K$, 1, 5pt, swap(0), [\ ],
2, swap(-1),
gategroup(2, 1, x: 2, y: 0, label: "swap", stroke: .5pt + blue, radius: 4pt, fill: blue)
)
Binary file added tests/decorations/slice/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions tests/decorations/slice/test.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#set page(width: auto, height: auto, margin: 0pt)
#import "/src/quill.typ": *

#quantum-circuit(
ctrl(0), slice(), 1, [\ ],
slice(), slice(x: 4, y: 0, n: 1, stroke: blue)
)
Binary file modified tests/layout/placed items/ref/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4514dd5

Please sign in to comment.