summaryrefslogtreecommitdiff
path: root/tests
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
parentb71113d37a29bab5c7dc4b501c33ee9afbdb8213 (diff)
More restructuring
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/graphics/hide.png (renamed from tests/ref/layout/hide.png)bin936 -> 936 bytes
-rw-r--r--tests/ref/graphics/image.png (renamed from tests/ref/elements/image.png)bin183386 -> 183386 bytes
-rw-r--r--tests/ref/graphics/shape-aspect.png (renamed from tests/ref/elements/shape-aspect.png)bin4663 -> 4663 bytes
-rw-r--r--tests/ref/graphics/shape-circle.png (renamed from tests/ref/elements/shape-circle.png)bin40653 -> 40653 bytes
-rw-r--r--tests/ref/graphics/shape-ellipse.png (renamed from tests/ref/elements/shape-ellipse.png)bin22046 -> 22046 bytes
-rw-r--r--tests/ref/graphics/shape-fill-stroke.png (renamed from tests/ref/elements/shape-fill-stroke.png)bin2893 -> 2893 bytes
-rw-r--r--tests/ref/graphics/shape-rect.png (renamed from tests/ref/elements/shape-rect.png)bin7261 -> 7261 bytes
-rw-r--r--tests/ref/graphics/shape-square.png (renamed from tests/ref/elements/shape-square.png)bin18777 -> 18777 bytes
-rw-r--r--tests/ref/graphics/transform.png (renamed from tests/ref/layout/transform.png)bin56525 -> 56525 bytes
-rw-r--r--tests/ref/math/basic.png (renamed from tests/ref/elements/math.png)bin3444 -> 3444 bytes
-rw-r--r--tests/ref/structure/enum.png (renamed from tests/ref/elements/enum.png)bin26118 -> 26118 bytes
-rw-r--r--tests/ref/structure/heading.png (renamed from tests/ref/elements/heading.png)bin25291 -> 25291 bytes
-rw-r--r--tests/ref/structure/list.png (renamed from tests/ref/elements/list.png)bin21396 -> 21396 bytes
-rw-r--r--tests/ref/structure/table.png (renamed from tests/ref/elements/table.png)bin1566 -> 1566 bytes
-rw-r--r--tests/ref/utility/numbering.png (renamed from tests/ref/utility/strings.png)bin10634 -> 10634 bytes
-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
32 files changed, 30 insertions, 34 deletions
diff --git a/tests/ref/layout/hide.png b/tests/ref/graphics/hide.png
index 8a60cf90..8a60cf90 100644
--- a/tests/ref/layout/hide.png
+++ b/tests/ref/graphics/hide.png
Binary files differ
diff --git a/tests/ref/elements/image.png b/tests/ref/graphics/image.png
index 11a28980..11a28980 100644
--- a/tests/ref/elements/image.png
+++ b/tests/ref/graphics/image.png
Binary files differ
diff --git a/tests/ref/elements/shape-aspect.png b/tests/ref/graphics/shape-aspect.png
index 719c1e6e..719c1e6e 100644
--- a/tests/ref/elements/shape-aspect.png
+++ b/tests/ref/graphics/shape-aspect.png
Binary files differ
diff --git a/tests/ref/elements/shape-circle.png b/tests/ref/graphics/shape-circle.png
index 040c6f0b..040c6f0b 100644
--- a/tests/ref/elements/shape-circle.png
+++ b/tests/ref/graphics/shape-circle.png
Binary files differ
diff --git a/tests/ref/elements/shape-ellipse.png b/tests/ref/graphics/shape-ellipse.png
index 740f005f..740f005f 100644
--- a/tests/ref/elements/shape-ellipse.png
+++ b/tests/ref/graphics/shape-ellipse.png
Binary files differ
diff --git a/tests/ref/elements/shape-fill-stroke.png b/tests/ref/graphics/shape-fill-stroke.png
index 12fcbd55..12fcbd55 100644
--- a/tests/ref/elements/shape-fill-stroke.png
+++ b/tests/ref/graphics/shape-fill-stroke.png
Binary files differ
diff --git a/tests/ref/elements/shape-rect.png b/tests/ref/graphics/shape-rect.png
index 1fdb0dac..1fdb0dac 100644
--- a/tests/ref/elements/shape-rect.png
+++ b/tests/ref/graphics/shape-rect.png
Binary files differ
diff --git a/tests/ref/elements/shape-square.png b/tests/ref/graphics/shape-square.png
index 00a0c848..00a0c848 100644
--- a/tests/ref/elements/shape-square.png
+++ b/tests/ref/graphics/shape-square.png
Binary files differ
diff --git a/tests/ref/layout/transform.png b/tests/ref/graphics/transform.png
index 65d94758..65d94758 100644
--- a/tests/ref/layout/transform.png
+++ b/tests/ref/graphics/transform.png
Binary files differ
diff --git a/tests/ref/elements/math.png b/tests/ref/math/basic.png
index 77ec8d51..77ec8d51 100644
--- a/tests/ref/elements/math.png
+++ b/tests/ref/math/basic.png
Binary files differ
diff --git a/tests/ref/elements/enum.png b/tests/ref/structure/enum.png
index ecd1cf53..ecd1cf53 100644
--- a/tests/ref/elements/enum.png
+++ b/tests/ref/structure/enum.png
Binary files differ
diff --git a/tests/ref/elements/heading.png b/tests/ref/structure/heading.png
index 09f3d7c7..09f3d7c7 100644
--- a/tests/ref/elements/heading.png
+++ b/tests/ref/structure/heading.png
Binary files differ
diff --git a/tests/ref/elements/list.png b/tests/ref/structure/list.png
index 503bfc9a..503bfc9a 100644
--- a/tests/ref/elements/list.png
+++ b/tests/ref/structure/list.png
Binary files differ
diff --git a/tests/ref/elements/table.png b/tests/ref/structure/table.png
index bc70d548..bc70d548 100644
--- a/tests/ref/elements/table.png
+++ b/tests/ref/structure/table.png
Binary files differ
diff --git a/tests/ref/utility/strings.png b/tests/ref/utility/numbering.png
index d4d575d9..d4d575d9 100644
--- a/tests/ref/utility/strings.png
+++ b/tests/ref/utility/numbering.png
Binary files differ
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)