From 93e6638bfe171e3c337876d2143e4e048cd8b279 Mon Sep 17 00:00:00 2001 From: Mathias Fischler Date: Mon, 12 Jun 2023 12:46:08 +0200 Subject: Resolve #1141: Add hint for missing numbering, improve hint format consistency (#1456) --- tests/typ/compiler/for.typ | 2 +- tests/typ/compiler/hint.typ | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'tests') 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 +// 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 -- cgit v1.2.3