summaryrefslogtreecommitdiff
path: root/tests/typ/math/syntax.typ
blob: 503d3031ca908d2f9c4587305e76e485d2814626 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Test math syntax.

---
// Test Unicode math.
$ ∑_(i=0)^ℕ a ∘ b = \u{2211}_(i=0)^NN a compose b $

---
// Test a few shorthands.
$ underline(f' : NN -> RR) \
  n |-> cases(
    [|1|] &"if" n >>> 10,
    2 * 3 &"if" n != 5,
    1 - 0 thick &...,
  ) $

---
// Test common symbols.
$ dot \ dots \ ast \ tilde \ star $

---
// Error: 1-2 unclosed delimiter
$a