diff options
| author | bluebear94 <uruwi@protonmail.com> | 2023-08-02 18:24:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-03 00:24:25 +0200 |
| commit | 3c94e05cedcb308d83028bfb42e19b29c1201ac1 (patch) | |
| tree | 2edfa0b8b928d3ad63e26a7aa2a73ec7aa1979a8 /tests/typ | |
| parent | 77cc05b121bef5a7feb62345d19d9c693415d7cd (diff) | |
Warn if layout doesn't stabilize (#1684)
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/meta/state.typ | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/typ/meta/state.typ b/tests/typ/meta/state.typ index 8f460ce1..1c329a95 100644 --- a/tests/typ/meta/state.typ +++ b/tests/typ/meta/state.typ @@ -46,3 +46,13 @@ Was: #locate(location => { #trait[Adventure] #trait[Fear] #trait[Anger] + +--- +// Make sure that a warning is produced if the layout fails to converge. +// Warning: -3:1-6:1 layout did not converge within 5 attempts +// Hint: -3:1-6:1 check if any states or queries are updating themselves +#let s = state("x", 1) +#locate(loc => { + s.update(s.final(loc) + 1) +}) +#s.display() |
