added test for groups
Some checks failed
CI / tests (push) Failing after 14s

This commit is contained in:
2025-07-28 22:47:28 +02:00
parent f39e14654a
commit bbc8bb0339
6 changed files with 75 additions and 0 deletions

4
tests/special-group/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
# generated by tytanic, do not edit
diff/**
out/**

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@@ -0,0 +1,71 @@
#set page(width: auto, height: auto)
#import "/src/lib.typ": *
#let preamble = {
_par("a", display-name: [Alice])
_par("b", display-name: [Bob])
_col("a", "b", width: 2cm)
}
#diagram({
preamble
_grp("Group 1", {
_seq("a", "b")
})
_grp("Group 2", desc: [Description], {
_seq("a", "b")
})
})
#pagebreak()
#diagram({
preamble
_alt(
"case 1", {
_seq("a", "b")
},
"case 2", {
_seq("a", "b")
},
"case 3", {
_seq("a", "b")
}
)
})
#pagebreak()
#diagram({
preamble
_loop("loop 1", {
_seq("a", "b")
})
_loop("loop 2", min: 1, {
_seq("a", "b")
})
_loop("loop 3", max: 10, {
_seq("a", "b")
})
_loop("loop 3", min: 1, max: 10, {
_seq("a", "b")
})
})
#pagebreak()
#diagram({
preamble
_opt("Optional", {
_seq("a", "b")
})
})
#pagebreak()
#diagram({
preamble
_break("Break", {
_seq("a", "b")
})
})