diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/suite/math/syntax.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/suite/math/syntax.typ')
| -rw-r--r-- | tests/suite/math/syntax.typ | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/suite/math/syntax.typ b/tests/suite/math/syntax.typ new file mode 100644 index 00000000..fcb8b89e --- /dev/null +++ b/tests/suite/math/syntax.typ @@ -0,0 +1,34 @@ +// Test math syntax. + +--- math-call-non-func --- +$ pi(a) $ +$ pi(a,) $ +$ pi(a,b) $ +$ pi(a,b,) $ + +--- math-unicode --- +// Test Unicode math. +$ ∑_(i=0)^ℕ a ∘ b = \u{2211}_(i=0)^NN a compose b $ + +--- math-shorthandes --- +// Test a few shorthands. +$ underline(f' : NN -> RR) \ + n |-> cases( + [|1|] &"if" n >>> 10, + 2 * 3 &"if" n != 5, + 1 - 0 thick &..., + ) $ + +--- math-common-symbols --- +// Test common symbols. +$ dot \ dots \ ast \ tilde \ star $ + +--- issue-2044-invalid-parsed-ident --- +// In this bug, the dot at the end was causing the right parenthesis to be +// parsed as an identifier instead of the closing right parenthesis. +$floor(phi.alt.)$ +$floor(phi.alt. )$ + +--- math-unclosed --- +// Error: 1-2 unclosed delimiter +$a |
