summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorMathias Fischler <Mafii@users.noreply.github.com>2023-06-12 12:46:08 +0200
committerGitHub <noreply@github.com>2023-06-12 12:46:08 +0200
commit93e6638bfe171e3c337876d2143e4e048cd8b279 (patch)
treefbed2ca8b0ec432ceec05482193aaec097778dfa /tests/typ
parent6a7182fcf71d05e2bb32072a56715497a03f0314 (diff)
Resolve #1141: Add hint for missing numbering, improve hint format consistency (#1456)
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/compiler/for.typ2
-rw-r--r--tests/typ/compiler/hint.typ11
2 files changed, 9 insertions, 4 deletions
diff --git a/tests/typ/compiler/for.typ b/tests/typ/compiler/for.typ
index 72aaea20..7a0d9601 100644
--- a/tests/typ/compiler/for.typ
+++ b/tests/typ/compiler/for.typ
@@ -92,7 +92,7 @@
---
// Destructuring without parentheses.
-// Error: 7 expected keyword `in`. did you mean to use a destructuring pattern?
+// Error: 7 expected keyword `in` - did you mean to use a destructuring pattern?
#for k, v in (a: 4, b: 5) {
dont-care
}
diff --git a/tests/typ/compiler/hint.typ b/tests/typ/compiler/hint.typ
index 88135443..981c954f 100644
--- a/tests/typ/compiler/hint.typ
+++ b/tests/typ/compiler/hint.typ
@@ -2,7 +2,7 @@
// Ref: false
---
-// Error: 1:17-1:19 expected length, found integer: a length needs a unit – did you mean 12pt?
+// Error: 1:17-1:19 expected length, found integer: a length needs a unit - did you mean 12pt?
#set text(size: 12)
---
@@ -11,12 +11,17 @@
a = 1-a
a = a -1
- // Error: 7-10 unknown variable: a-1 – if you meant to use subtraction, try adding spaces around the minus sign.
+ // Error: 7-10 unknown variable: a-1 - if you meant to use subtraction, try adding spaces around the minus sign.
a = a-1
}
---
#{
- // Error: 3-6 unknown variable: a-1 – if you meant to use subtraction, try adding spaces around the minus sign.
+ // Error: 3-6 unknown variable: a-1 - if you meant to use subtraction, try adding spaces around the minus sign.
a-1 = 2
}
+
+---
+= Heading <intro>
+// Error: 1:20-1:26 cannot reference heading without numbering - did you mean to use `#set heading(numbering: "1.")`?
+Can not be used as @intro