summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-03-11 11:58:56 +0100
committerLaurenz <laurmaedje@gmail.com>2022-03-11 11:58:56 +0100
commite6b532391deb1e30dc356c4d20dd48199f748f29 (patch)
tree7b631414931164b9a47c9d154172195fc0e1316c /tests/typ
parentb71113d37a29bab5c7dc4b501c33ee9afbdb8213 (diff)
More restructuring
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/graphics/hide.typ (renamed from tests/typ/layout/hide.typ)0
-rw-r--r--tests/typ/graphics/image.typ (renamed from tests/typ/elements/image.typ)0
-rw-r--r--tests/typ/graphics/shape-aspect.typ (renamed from tests/typ/elements/shape-aspect.typ)0
-rw-r--r--tests/typ/graphics/shape-circle.typ (renamed from tests/typ/elements/shape-circle.typ)0
-rw-r--r--tests/typ/graphics/shape-ellipse.typ (renamed from tests/typ/elements/shape-ellipse.typ)0
-rw-r--r--tests/typ/graphics/shape-fill-stroke.typ (renamed from tests/typ/elements/shape-fill-stroke.typ)0
-rw-r--r--tests/typ/graphics/shape-rect.typ (renamed from tests/typ/elements/shape-rect.typ)0
-rw-r--r--tests/typ/graphics/shape-square.typ (renamed from tests/typ/elements/shape-square.typ)0
-rw-r--r--tests/typ/graphics/transform.typ (renamed from tests/typ/layout/transform.typ)0
-rw-r--r--tests/typ/math/basic.typ (renamed from tests/typ/elements/math.typ)0
-rw-r--r--tests/typ/structure/enum.typ (renamed from tests/typ/elements/enum.typ)0
-rw-r--r--tests/typ/structure/heading.typ (renamed from tests/typ/elements/heading.typ)0
-rw-r--r--tests/typ/structure/list.typ (renamed from tests/typ/elements/list.typ)0
-rw-r--r--tests/typ/structure/table.typ (renamed from tests/typ/elements/table.typ)0
-rw-r--r--tests/typ/utility/collection.typ11
-rw-r--r--tests/typ/utility/numbering.typ19
-rw-r--r--tests/typ/utility/strings.typ34
17 files changed, 30 insertions, 34 deletions
diff --git a/tests/typ/layout/hide.typ b/tests/typ/graphics/hide.typ
index a979b24f..a979b24f 100644
--- a/tests/typ/layout/hide.typ
+++ b/tests/typ/graphics/hide.typ
diff --git a/tests/typ/elements/image.typ b/tests/typ/graphics/image.typ
index 8817713f..8817713f 100644
--- a/tests/typ/elements/image.typ
+++ b/tests/typ/graphics/image.typ
diff --git a/tests/typ/elements/shape-aspect.typ b/tests/typ/graphics/shape-aspect.typ
index 2c3e9b0c..2c3e9b0c 100644
--- a/tests/typ/elements/shape-aspect.typ
+++ b/tests/typ/graphics/shape-aspect.typ
diff --git a/tests/typ/elements/shape-circle.typ b/tests/typ/graphics/shape-circle.typ
index 4b978e86..4b978e86 100644
--- a/tests/typ/elements/shape-circle.typ
+++ b/tests/typ/graphics/shape-circle.typ
diff --git a/tests/typ/elements/shape-ellipse.typ b/tests/typ/graphics/shape-ellipse.typ
index 154144c4..154144c4 100644
--- a/tests/typ/elements/shape-ellipse.typ
+++ b/tests/typ/graphics/shape-ellipse.typ
diff --git a/tests/typ/elements/shape-fill-stroke.typ b/tests/typ/graphics/shape-fill-stroke.typ
index 935f3bc7..935f3bc7 100644
--- a/tests/typ/elements/shape-fill-stroke.typ
+++ b/tests/typ/graphics/shape-fill-stroke.typ
diff --git a/tests/typ/elements/shape-rect.typ b/tests/typ/graphics/shape-rect.typ
index add39b80..add39b80 100644
--- a/tests/typ/elements/shape-rect.typ
+++ b/tests/typ/graphics/shape-rect.typ
diff --git a/tests/typ/elements/shape-square.typ b/tests/typ/graphics/shape-square.typ
index c4ece778..c4ece778 100644
--- a/tests/typ/elements/shape-square.typ
+++ b/tests/typ/graphics/shape-square.typ
diff --git a/tests/typ/layout/transform.typ b/tests/typ/graphics/transform.typ
index 82ee1390..82ee1390 100644
--- a/tests/typ/layout/transform.typ
+++ b/tests/typ/graphics/transform.typ
diff --git a/tests/typ/elements/math.typ b/tests/typ/math/basic.typ
index cad01d10..cad01d10 100644
--- a/tests/typ/elements/math.typ
+++ b/tests/typ/math/basic.typ
diff --git a/tests/typ/elements/enum.typ b/tests/typ/structure/enum.typ
index 8ba3cea6..8ba3cea6 100644
--- a/tests/typ/elements/enum.typ
+++ b/tests/typ/structure/enum.typ
diff --git a/tests/typ/elements/heading.typ b/tests/typ/structure/heading.typ
index 2ae97aa8..2ae97aa8 100644
--- a/tests/typ/elements/heading.typ
+++ b/tests/typ/structure/heading.typ
diff --git a/tests/typ/elements/list.typ b/tests/typ/structure/list.typ
index 38fc2c63..38fc2c63 100644
--- a/tests/typ/elements/list.typ
+++ b/tests/typ/structure/list.typ
diff --git a/tests/typ/elements/table.typ b/tests/typ/structure/table.typ
index 0372951c..0372951c 100644
--- a/tests/typ/elements/table.typ
+++ b/tests/typ/structure/table.typ
diff --git a/tests/typ/utility/collection.typ b/tests/typ/utility/collection.typ
index a4bc817e..649be4f7 100644
--- a/tests/typ/utility/collection.typ
+++ b/tests/typ/utility/collection.typ
@@ -17,6 +17,17 @@
#len(12pt)
---
+// Test the `upper` and `lower` functions.
+#let memes = "ArE mEmEs gReAt?";
+#test(lower(memes), "are memes great?")
+#test(upper(memes), "ARE MEMES GREAT?")
+#test(upper("Ελλάδα"), "ΕΛΛΆΔΑ")
+
+---
+// Error: 8-9 expected string or template, found integer
+#upper(1)
+
+---
// Test the `sorted` function.
#test(sorted(()), ())
#test(sorted((true, false) * 10), (false,) * 10 + (true,) * 10)
diff --git a/tests/typ/utility/numbering.typ b/tests/typ/utility/numbering.typ
new file mode 100644
index 00000000..65dc12d0
--- /dev/null
+++ b/tests/typ/utility/numbering.typ
@@ -0,0 +1,19 @@
+// Test numbering formatting functions.
+
+---
+#upper("Abc 8")
+#upper[def]
+
+#lower("SCREAMING MUST BE SILENCED in " + roman(1672) + " years")
+
+#for i in range(9) {
+ symbol(i)
+ [ and ]
+ roman(i)
+ [ for #i]
+ parbreak()
+}
+
+---
+// Error: 9-11 must be at least zero
+#symbol(-1)
diff --git a/tests/typ/utility/strings.typ b/tests/typ/utility/strings.typ
deleted file mode 100644
index 4222266b..00000000
--- a/tests/typ/utility/strings.typ
+++ /dev/null
@@ -1,34 +0,0 @@
-// Test string handling functions.
-// Ref: false
-
----
-// Test the `upper`, `lower`, and number formatting functions.
-#let memes = "ArE mEmEs gReAt?";
-#test(lower(memes), "are memes great?")
-#test(upper(memes), "ARE MEMES GREAT?")
-#test(upper("Ελλάδα"), "ΕΛΛΆΔΑ")
-
----
-// Test numbering formatting functions.
-// Ref: true
-
-#upper("Abc 8")
-#upper[def]
-
-#lower("SCREAMING MUST BE SILENCED in " + roman(1672) + " years")
-
-#for i in range(9) {
- symbol(i)
- [ and ]
- roman(i)
- [ for #i]
- parbreak()
-}
-
----
-// Error: 8-9 expected string or template, found integer
-#upper(1)
-
----
-// Error: 9-11 must be at least zero
-#symbol(-1)