summaryrefslogtreecommitdiff
path: root/tests/library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-01-30 16:46:16 +0100
committerLaurenz <laurmaedje@gmail.com>2021-01-30 16:46:16 +0100
commite3139ed3ee8c96b89f7f10f4ed72b4893d724689 (patch)
tree87d046f2d21a5ee271a41ac02ac34fbe734c7f0a /tests/library
parentbcb2c46a10caa63378725f58e866e54faf4122cf (diff)
Allow shortening locations from 1:x-1:y to x-y 🩳
Diffstat (limited to 'tests/library')
-rw-r--r--tests/library/typ/font.typ6
-rw-r--r--tests/library/typ/hv.typ2
-rw-r--r--tests/library/typ/image.typ4
-rw-r--r--tests/library/typ/page.typ4
-rw-r--r--tests/library/typ/rgb.typ2
5 files changed, 9 insertions, 9 deletions
diff --git a/tests/library/typ/font.typ b/tests/library/typ/font.typ
index 57761a8f..1bfc1fa6 100644
--- a/tests/library/typ/font.typ
+++ b/tests/library/typ/font.typ
@@ -19,7 +19,7 @@
// Set stretch (not available, matching closest).
#[font stretch: ultra-condensed][Condensed]
-// Error: 1:8-1:13 unexpected argument
+// Error: 8-13 unexpected argument
#[font false]
// Error: 3:15-3:19 expected font style, found font weight
@@ -27,10 +27,10 @@
// Error: 1:44-1:45 expected font family or array of font families, found integer
#[font style: bold, weight: "thin", serif: 0]
-// Warning: 1:16-1:20 should be between 100 and 900
+// Warning: 16-20 should be between 100 and 900
#[font weight: 2700]
-// Error: 1:8-1:28 unexpected argument
+// Error: 8-28 unexpected argument
#[font something: "invalid"]
---
diff --git a/tests/library/typ/hv.typ b/tests/library/typ/hv.typ
index 67c04a12..15799c81 100644
--- a/tests/library/typ/hv.typ
+++ b/tests/library/typ/hv.typ
@@ -11,7 +11,7 @@ Add #[h 10pt] #[h 10pt] up
Relative #[h 100%] spacing
// Missing spacing.
-// Error: 1:12-1:12 missing argument: spacing
+// Error: 12-12 missing argument: spacing
Totally #[h] ignored
// Swapped axes.
diff --git a/tests/library/typ/image.typ b/tests/library/typ/image.typ
index a1e886dd..ced364b3 100644
--- a/tests/library/typ/image.typ
+++ b/tests/library/typ/image.typ
@@ -7,10 +7,10 @@
// Load an RGB JPEG image.
#[image "res/tiger.jpg"]
-// Error: 1:9-1:30 failed to load image
+// Error: 9-30 failed to load image
#[image "path/does/not/exist"]
-// Error: 1:9-1:30 failed to load image
+// Error: 9-30 failed to load image
#[image "typ/image-error.typ"]
---
diff --git a/tests/library/typ/page.typ b/tests/library/typ/page.typ
index 97100ae9..8a9604ad 100644
--- a/tests/library/typ/page.typ
+++ b/tests/library/typ/page.typ
@@ -21,10 +21,10 @@
// Ensure that specific margins override general margins.
#[page margins: 0pt, left: 20pt][Overriden]
-// Error: 1:8-1:19 unknown variable
+// Error: 8-19 unknown variable
#[page nonexistant]
-// Error: 1:18-1:21 aligned axis
+// Error: 18-21 aligned axis
#[page main-dir: ltr]
// Flipped predefined paper.
diff --git a/tests/library/typ/rgb.typ b/tests/library/typ/rgb.typ
index e7b40518..06f7be52 100644
--- a/tests/library/typ/rgb.typ
+++ b/tests/library/typ/rgb.typ
@@ -8,7 +8,7 @@
// Warning: 1:12-1:16 should be between 0.0 and 1.0
#[rgb -30, 15.5, 0.5]
-// Error: 1:7-1:11 missing argument: blue component
+// Error: 7-11 missing argument: blue component
#[rgb 0, 1]
// Error: 3:6-3:6 missing argument: red component