summaryrefslogtreecommitdiff
path: root/tests/typ/math
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-10-04 13:42:49 +0200
committerLaurenz <laurmaedje@gmail.com>2022-10-04 13:45:16 +0200
commit5a8534a395b500a25cbc46ee15ec031c8231de59 (patch)
treea525c447c3243fe315c7ed91923e158df131809b /tests/typ/math
parent7ef6cb31df0fe1ebec99b1077053a586a349f530 (diff)
Parse basic math syntax
Diffstat (limited to 'tests/typ/math')
-rw-r--r--tests/typ/math/basic.typ10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/typ/math/basic.typ b/tests/typ/math/basic.typ
index 77d2e535..a1a9d32f 100644
--- a/tests/typ/math/basic.typ
+++ b/tests/typ/math/basic.typ
@@ -9,11 +9,11 @@ $ a^2 + b^2 = c^2 $
---
Prove by induction:
-$ \sum_{k=0}^n k = \frac{n(n+1)}{2} $
+$ sum_(k=0)^n k = (n(n+1))/2 $
---
// Test that blackboard style looks nice.
-$ f: \mathbb{N} \rightarrow \mathbb{R} $
+$ f: NN arrow RR $
---
#set math(family: "IBM Plex Sans")
@@ -22,9 +22,5 @@ $ f: \mathbb{N} \rightarrow \mathbb{R} $
$a$
---
-// Error: 1-10 expected '}' found EOF
-$\sqrt{x$
-
----
-// Error: 2:1 expected dollar sign
+// Error: 1:3 expected dollar sign
$a