summaryrefslogtreecommitdiff
path: root/tests/typ/math/cases.typ
blob: 83a5ab66fb3e1a0b2e59d239dab428fca59090e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
// Test case distinction.

---
$ f(x, y) := cases(
  1 quad &"if" (x dot.op y)/2 <= 0,
  2 &"if" x divides 2,
  3 &"if" x in NN,
  4 &"else",
) $