summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarmare314 <49279081+Marmare314@users.noreply.github.com>2023-05-03 11:16:38 +0200
committerGitHub <noreply@github.com>2023-05-03 11:16:38 +0200
commitedc0632d8c9d7a17cc795a57de27c6b22a748158 (patch)
treea1c6e412512bed7b56c7c100b8affeac7e29f389 /tests
parent2772e6436c8a010662820c3e545e69ab922f133a (diff)
Add shorthand for root operation (#929)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math/root.pngbin9754 -> 12986 bytes
-rw-r--r--tests/typ/math/root.typ6
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/ref/math/root.png b/tests/ref/math/root.png
index ccd284a6..b7d2807d 100644
--- a/tests/ref/math/root.png
+++ b/tests/ref/math/root.png
Binary files differ
diff --git a/tests/typ/math/root.typ b/tests/typ/math/root.typ
index fdb37bc1..6eba1275 100644
--- a/tests/typ/math/root.typ
+++ b/tests/typ/math/root.typ
@@ -37,3 +37,9 @@ $ root(2, x) quad
root(3/(2/1), x) quad
root(1/11, x) quad
root(1/2/3, 1) $
+
+---
+// Test shorthand.
+$ √2^3 = sqrt(2^3) $
+$ √(x+y) quad ∛x quad ∜x $
+$ (√2+3) = (sqrt(2)+3) $