summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/basics/enum.typ5
-rw-r--r--tests/typ/basics/heading.typ13
-rw-r--r--tests/typ/basics/list.typ10
-rw-r--r--tests/typ/basics/terms.typ14
4 files changed, 25 insertions, 17 deletions
diff --git a/tests/typ/basics/enum.typ b/tests/typ/basics/enum.typ
index 02eb03c2..fd845c2b 100644
--- a/tests/typ/basics/enum.typ
+++ b/tests/typ/basics/enum.typ
@@ -55,9 +55,10 @@
+ B
---
-// Lone plus is not an enum.
+// Edge cases.
+
-No enum
+Empty
++Nope
---
// Error: 22-24 invalid numbering pattern
diff --git a/tests/typ/basics/heading.typ b/tests/typ/basics/heading.typ
index d843a2e8..3d637036 100644
--- a/tests/typ/basics/heading.typ
+++ b/tests/typ/basics/heading.typ
@@ -1,12 +1,6 @@
// Test headings.
---
-#show heading: it => text(blue, it.title)
-
-=
-No heading
-
----
// Different number of equals signs.
= Level 1
@@ -50,3 +44,10 @@ multiline.
= Heading
===== Heading 🌍
#heading(level: 5)[Heading]
+
+---
+// Edge cases.
+#set heading(numbering: "1.")
+=
+Not in heading
+=Nope
diff --git a/tests/typ/basics/list.typ b/tests/typ/basics/list.typ
index 1c111dcb..3fd9ddb1 100644
--- a/tests/typ/basics/list.typ
+++ b/tests/typ/basics/list.typ
@@ -1,10 +1,6 @@
// Test bullet lists.
---
--
-No list
-
----
_Shopping list_
#list[Apples][Potatoes][Juice]
@@ -52,3 +48,9 @@ _Shopping list_
#set list(marker: [-])
- Bare hyphen
- is not a list
+
+---
+// Edge cases.
+-
+Not in list
+-Nope
diff --git a/tests/typ/basics/terms.typ b/tests/typ/basics/terms.typ
index 204defbf..57864423 100644
--- a/tests/typ/basics/terms.typ
+++ b/tests/typ/basics/terms.typ
@@ -1,11 +1,6 @@
// Test term list.
---
-/
-No: list \
-/No: list
-
----
// Test with constructor.
#terms(
([One], [First]),
@@ -46,3 +41,12 @@ No: list \
/ A: One letter
/ BB: Two letters
/ CCC: Three letters
+
+---
+/ Term:
+Not in list
+/Nope
+
+---
+// Error: 8 expected colon
+/ Hello