Skip to content

Commit

Permalink
[test] num with array and state input
Browse files Browse the repository at this point in the history
  • Loading branch information
Mc-Zen committed Dec 10, 2024
1 parent 5d60208 commit 09d2257
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Binary file added tests/num/ref/20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/num/ref/21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 21 additions & 1 deletion tests/num/test.typ
Original file line number Diff line number Diff line change
Expand Up @@ -280,4 +280,24 @@
#{state.decimal-separator = ","}
#let num = num.with(state: state)
#num[2.34]
]
]

#pagebreak()

// num with array input

#context {
num(("1", "2")).join(" ")
}

#pagebreak()

// num with state input

#context {
let state = num-state.get()
num("1", state: state)
[ ]
num("2", state: state)
// stack(..a)
}

0 comments on commit 09d2257

Please # to comment.