summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/ref/code/array.png (renamed from tests/ref/expr/array.png)bin3396 -> 3396 bytes
-rw-r--r--tests/ref/code/block-invalid.png (renamed from tests/ref/expr/block-invalid.png)bin512 -> 512 bytes
-rw-r--r--tests/ref/code/block.png (renamed from tests/ref/expr/block.png)bin1407 -> 1407 bytes
-rw-r--r--tests/ref/code/call-invalid.png (renamed from tests/ref/expr/call-invalid.png)bin2897 -> 2897 bytes
-rw-r--r--tests/ref/code/call.png (renamed from tests/ref/expr/call.png)bin5972 -> 5972 bytes
-rw-r--r--tests/ref/code/comment.png (renamed from tests/ref/comment.png)bin708 -> 708 bytes
-rw-r--r--tests/ref/code/dict.png (renamed from tests/ref/expr/dict.png)bin1612 -> 1612 bytes
-rw-r--r--tests/ref/code/for.png (renamed from tests/ref/control/for.png)bin2685 -> 2685 bytes
-rw-r--r--tests/ref/code/if.png (renamed from tests/ref/control/if.png)bin1644 -> 1644 bytes
-rw-r--r--tests/ref/code/invalid.png (renamed from tests/ref/control/invalid.png)bin3647 -> 3647 bytes
-rw-r--r--tests/ref/code/let.png (renamed from tests/ref/control/let.png)bin1974 -> 1974 bytes
-rw-r--r--tests/ref/code/ops.png (renamed from tests/ref/expr/ops.png)bin782 -> 782 bytes
-rw-r--r--tests/ref/code/repr.png (renamed from tests/ref/repr.png)bin10838 -> 10838 bytes
-rw-r--r--tests/ref/code/while.png (renamed from tests/ref/control/while.png)bin879 -> 879 bytes
-rw-r--r--tests/ref/layout/fixed.png (renamed from tests/ref/expand.png)bin1372 -> 1372 bytes
-rw-r--r--tests/ref/spacing.pngbin5208 -> 0 bytes
-rw-r--r--tests/ref/text/whitespace.pngbin2084 -> 7160 bytes
-rw-r--r--tests/typ/code/array.typ (renamed from tests/typ/expr/array.typ)0
-rw-r--r--tests/typ/code/assoc.typ (renamed from tests/typ/expr/assoc.typ)0
-rw-r--r--tests/typ/code/block-invalid.typ (renamed from tests/typ/expr/block-invalid.typ)0
-rw-r--r--tests/typ/code/block-scoping.typ (renamed from tests/typ/expr/block-scoping.typ)0
-rw-r--r--tests/typ/code/block.typ (renamed from tests/typ/expr/block.typ)0
-rw-r--r--tests/typ/code/call-invalid.typ (renamed from tests/typ/expr/call-invalid.typ)0
-rw-r--r--tests/typ/code/call.typ (renamed from tests/typ/expr/call.typ)0
-rw-r--r--tests/typ/code/closure.typ (renamed from tests/typ/expr/closure.typ)0
-rw-r--r--tests/typ/code/comment.typ (renamed from tests/typ/comment.typ)0
-rw-r--r--tests/typ/code/dict.typ (renamed from tests/typ/expr/dict.typ)0
-rw-r--r--tests/typ/code/for-pattern.typ (renamed from tests/typ/control/for-pattern.typ)0
-rw-r--r--tests/typ/code/for.typ (renamed from tests/typ/control/for.typ)0
-rw-r--r--tests/typ/code/if.typ (renamed from tests/typ/control/if.typ)0
-rw-r--r--tests/typ/code/invalid.typ (renamed from tests/typ/control/invalid.typ)0
-rw-r--r--tests/typ/code/let.typ (renamed from tests/typ/control/let.typ)0
-rw-r--r--tests/typ/code/ops-invalid.typ (renamed from tests/typ/expr/ops-invalid.typ)0
-rw-r--r--tests/typ/code/ops.typ (renamed from tests/typ/expr/ops.typ)0
-rw-r--r--tests/typ/code/prec.typ (renamed from tests/typ/expr/prec.typ)0
-rw-r--r--tests/typ/code/repr.typ (renamed from tests/typ/repr.typ)0
-rw-r--r--tests/typ/code/while.typ (renamed from tests/typ/control/while.typ)0
-rw-r--r--tests/typ/layout/fixed.typ (renamed from tests/typ/expand.typ)2
-rw-r--r--tests/typ/spacing.typ35
-rw-r--r--tests/typ/text/whitespace.typ34
40 files changed, 35 insertions, 36 deletions
diff --git a/tests/ref/expr/array.png b/tests/ref/code/array.png
index b1e20348..b1e20348 100644
--- a/tests/ref/expr/array.png
+++ b/tests/ref/code/array.png
Binary files differ
diff --git a/tests/ref/expr/block-invalid.png b/tests/ref/code/block-invalid.png
index d1e85402..d1e85402 100644
--- a/tests/ref/expr/block-invalid.png
+++ b/tests/ref/code/block-invalid.png
Binary files differ
diff --git a/tests/ref/expr/block.png b/tests/ref/code/block.png
index 6b0dd540..6b0dd540 100644
--- a/tests/ref/expr/block.png
+++ b/tests/ref/code/block.png
Binary files differ
diff --git a/tests/ref/expr/call-invalid.png b/tests/ref/code/call-invalid.png
index f2f90f09..f2f90f09 100644
--- a/tests/ref/expr/call-invalid.png
+++ b/tests/ref/code/call-invalid.png
Binary files differ
diff --git a/tests/ref/expr/call.png b/tests/ref/code/call.png
index ae05f617..ae05f617 100644
--- a/tests/ref/expr/call.png
+++ b/tests/ref/code/call.png
Binary files differ
diff --git a/tests/ref/comment.png b/tests/ref/code/comment.png
index 6654e125..6654e125 100644
--- a/tests/ref/comment.png
+++ b/tests/ref/code/comment.png
Binary files differ
diff --git a/tests/ref/expr/dict.png b/tests/ref/code/dict.png
index 09f69b56..09f69b56 100644
--- a/tests/ref/expr/dict.png
+++ b/tests/ref/code/dict.png
Binary files differ
diff --git a/tests/ref/control/for.png b/tests/ref/code/for.png
index f9abf074..f9abf074 100644
--- a/tests/ref/control/for.png
+++ b/tests/ref/code/for.png
Binary files differ
diff --git a/tests/ref/control/if.png b/tests/ref/code/if.png
index b30e63f8..b30e63f8 100644
--- a/tests/ref/control/if.png
+++ b/tests/ref/code/if.png
Binary files differ
diff --git a/tests/ref/control/invalid.png b/tests/ref/code/invalid.png
index bfd3ec2c..bfd3ec2c 100644
--- a/tests/ref/control/invalid.png
+++ b/tests/ref/code/invalid.png
Binary files differ
diff --git a/tests/ref/control/let.png b/tests/ref/code/let.png
index 8a5c5fc6..8a5c5fc6 100644
--- a/tests/ref/control/let.png
+++ b/tests/ref/code/let.png
Binary files differ
diff --git a/tests/ref/expr/ops.png b/tests/ref/code/ops.png
index b566b5b7..b566b5b7 100644
--- a/tests/ref/expr/ops.png
+++ b/tests/ref/code/ops.png
Binary files differ
diff --git a/tests/ref/repr.png b/tests/ref/code/repr.png
index b93677f1..b93677f1 100644
--- a/tests/ref/repr.png
+++ b/tests/ref/code/repr.png
Binary files differ
diff --git a/tests/ref/control/while.png b/tests/ref/code/while.png
index c0045350..c0045350 100644
--- a/tests/ref/control/while.png
+++ b/tests/ref/code/while.png
Binary files differ
diff --git a/tests/ref/expand.png b/tests/ref/layout/fixed.png
index e07e15e8..e07e15e8 100644
--- a/tests/ref/expand.png
+++ b/tests/ref/layout/fixed.png
Binary files differ
diff --git a/tests/ref/spacing.png b/tests/ref/spacing.png
deleted file mode 100644
index 82f7e8d2..00000000
--- a/tests/ref/spacing.png
+++ /dev/null
Binary files differ
diff --git a/tests/ref/text/whitespace.png b/tests/ref/text/whitespace.png
index 35a21320..27a67586 100644
--- a/tests/ref/text/whitespace.png
+++ b/tests/ref/text/whitespace.png
Binary files differ
diff --git a/tests/typ/expr/array.typ b/tests/typ/code/array.typ
index c9383501..c9383501 100644
--- a/tests/typ/expr/array.typ
+++ b/tests/typ/code/array.typ
diff --git a/tests/typ/expr/assoc.typ b/tests/typ/code/assoc.typ
index 19c56951..19c56951 100644
--- a/tests/typ/expr/assoc.typ
+++ b/tests/typ/code/assoc.typ
diff --git a/tests/typ/expr/block-invalid.typ b/tests/typ/code/block-invalid.typ
index d98bf06b..d98bf06b 100644
--- a/tests/typ/expr/block-invalid.typ
+++ b/tests/typ/code/block-invalid.typ
diff --git a/tests/typ/expr/block-scoping.typ b/tests/typ/code/block-scoping.typ
index 7bb98969..7bb98969 100644
--- a/tests/typ/expr/block-scoping.typ
+++ b/tests/typ/code/block-scoping.typ
diff --git a/tests/typ/expr/block.typ b/tests/typ/code/block.typ
index 196e6c14..196e6c14 100644
--- a/tests/typ/expr/block.typ
+++ b/tests/typ/code/block.typ
diff --git a/tests/typ/expr/call-invalid.typ b/tests/typ/code/call-invalid.typ
index 0ed5246f..0ed5246f 100644
--- a/tests/typ/expr/call-invalid.typ
+++ b/tests/typ/code/call-invalid.typ
diff --git a/tests/typ/expr/call.typ b/tests/typ/code/call.typ
index dcf11806..dcf11806 100644
--- a/tests/typ/expr/call.typ
+++ b/tests/typ/code/call.typ
diff --git a/tests/typ/expr/closure.typ b/tests/typ/code/closure.typ
index 86a6f632..86a6f632 100644
--- a/tests/typ/expr/closure.typ
+++ b/tests/typ/code/closure.typ
diff --git a/tests/typ/comment.typ b/tests/typ/code/comment.typ
index 25180211..25180211 100644
--- a/tests/typ/comment.typ
+++ b/tests/typ/code/comment.typ
diff --git a/tests/typ/expr/dict.typ b/tests/typ/code/dict.typ
index 655a3299..655a3299 100644
--- a/tests/typ/expr/dict.typ
+++ b/tests/typ/code/dict.typ
diff --git a/tests/typ/control/for-pattern.typ b/tests/typ/code/for-pattern.typ
index a6a7c16a..a6a7c16a 100644
--- a/tests/typ/control/for-pattern.typ
+++ b/tests/typ/code/for-pattern.typ
diff --git a/tests/typ/control/for.typ b/tests/typ/code/for.typ
index bca1af46..bca1af46 100644
--- a/tests/typ/control/for.typ
+++ b/tests/typ/code/for.typ
diff --git a/tests/typ/control/if.typ b/tests/typ/code/if.typ
index 8d07e9b8..8d07e9b8 100644
--- a/tests/typ/control/if.typ
+++ b/tests/typ/code/if.typ
diff --git a/tests/typ/control/invalid.typ b/tests/typ/code/invalid.typ
index 49158a68..49158a68 100644
--- a/tests/typ/control/invalid.typ
+++ b/tests/typ/code/invalid.typ
diff --git a/tests/typ/control/let.typ b/tests/typ/code/let.typ
index 4f84aa67..4f84aa67 100644
--- a/tests/typ/control/let.typ
+++ b/tests/typ/code/let.typ
diff --git a/tests/typ/expr/ops-invalid.typ b/tests/typ/code/ops-invalid.typ
index 12d2a2c3..12d2a2c3 100644
--- a/tests/typ/expr/ops-invalid.typ
+++ b/tests/typ/code/ops-invalid.typ
diff --git a/tests/typ/expr/ops.typ b/tests/typ/code/ops.typ
index ef249c43..ef249c43 100644
--- a/tests/typ/expr/ops.typ
+++ b/tests/typ/code/ops.typ
diff --git a/tests/typ/expr/prec.typ b/tests/typ/code/prec.typ
index e64e583c..e64e583c 100644
--- a/tests/typ/expr/prec.typ
+++ b/tests/typ/code/prec.typ
diff --git a/tests/typ/repr.typ b/tests/typ/code/repr.typ
index f2404510..f2404510 100644
--- a/tests/typ/repr.typ
+++ b/tests/typ/code/repr.typ
diff --git a/tests/typ/control/while.typ b/tests/typ/code/while.typ
index acf7951e..acf7951e 100644
--- a/tests/typ/control/while.typ
+++ b/tests/typ/code/while.typ
diff --git a/tests/typ/expand.typ b/tests/typ/layout/fixed.typ
index 8b858a4e..bcb88fe1 100644
--- a/tests/typ/expand.typ
+++ b/tests/typ/layout/fixed.typ
@@ -1,4 +1,4 @@
-// Test fit/fill expansion.
+// Test shrink-to-fit vs fixed.
---
#let right(body) = align(right, body)
diff --git a/tests/typ/spacing.typ b/tests/typ/spacing.typ
deleted file mode 100644
index bb86a59c..00000000
--- a/tests/typ/spacing.typ
+++ /dev/null
@@ -1,35 +0,0 @@
-// Test spacing around control flow structures.
-
----
-// Spacing around let.
-
-// Error: 6 expected identifier
-A#let;B \
-A#let x = 1;B #test(x, 1) \
-A #let x = 2;B #test(x, 2) \
-A#let x = 3; B #test(x, 3)
-
----
-// Spacing around if-else.
-
-A#if true [B]C \
-A#if true [B] C \
-A #if true{"B"}C \
-A #if true{"B"} C \
-A#if false [] #else [B]C \
-A#if true [B] #else [] C
-
----
-// Spacing around while loop.
-
-#let c = true; A#while c [{c = false}B]C \
-#let c = true; A#while c [{c = false}B] C \
-#let c = true; A #while c { c = false; "B" }C \
-#let c = true; A #while c { c = false; "B" } C
-
----
-// Spacing around for loop.
-
-A#for _ in (none,) [B]C \
-A#for _ in (none,) [B] C \
-A #for _ in (none,) {"B"}C
diff --git a/tests/typ/text/whitespace.typ b/tests/typ/text/whitespace.typ
index 3d7dd2e2..418c3a12 100644
--- a/tests/typ/text/whitespace.typ
+++ b/tests/typ/text/whitespace.typ
@@ -1,6 +1,40 @@
// Test whitespace handling.
---
+// Spacing around let.
+
+// Error: 6 expected identifier
+A#let;B \
+A#let x = 1;B #test(x, 1) \
+A #let x = 2;B #test(x, 2) \
+A#let x = 3; B #test(x, 3)
+
+---
+// Spacing around if-else.
+
+A#if true [B]C \
+A#if true [B] C \
+A #if true{"B"}C \
+A #if true{"B"} C \
+A#if false [] #else [B]C \
+A#if true [B] #else [] C
+
+---
+// Spacing around while loop.
+
+#let c = true; A#while c [{c = false}B]C \
+#let c = true; A#while c [{c = false}B] C \
+#let c = true; A #while c { c = false; "B" }C \
+#let c = true; A #while c { c = false; "B" } C
+
+---
+// Spacing around for loop.
+
+A#for _ in (none,) [B]C \
+A#for _ in (none,) [B] C \
+A #for _ in (none,) {"B"}C
+
+---
// Test that a run consisting only of whitespace isn't trimmed.
A#font("PT Sans")[ ]B