diff options
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/meta/state.typ | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/typ/meta/state.typ b/tests/typ/meta/state.typ index a7c3d26a..8f460ce1 100644 --- a/tests/typ/meta/state.typ +++ b/tests/typ/meta/state.typ @@ -16,6 +16,15 @@ Was: #locate(location => { }). --- +// Try same key with different initial value. +#state("key", 2).display() +#state("key").update(x => x + 1) +#state("key", 2).display() +#state("key", 3).display() +#state("key").update(x => x + 1) +#state("key", 2).display() + +--- #set page(width: 200pt) #set text(8pt) |
