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/cases.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/suite/math/cases.typ')
| -rw-r--r-- | tests/suite/math/cases.typ | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/suite/math/cases.typ b/tests/suite/math/cases.typ new file mode 100644 index 00000000..e6c4956d --- /dev/null +++ b/tests/suite/math/cases.typ @@ -0,0 +1,13 @@ +// Test case distinction. + +--- math-cases --- +$ f(x, y) := cases( + 1 quad &"if" (x dot y)/2 <= 0, + 2 &"if" x divides 2, + 3 &"if" x in NN, + 4 &"else", +) $ + +--- math-cases-gap --- +#set math.cases(gap: 1em) +$ x = cases(1, 2) $ |
