Reorganize test cases
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 512 B After Width: | Height: | Size: 512 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 708 B After Width: | Height: | Size: 708 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 782 B After Width: | Height: | Size: 782 B |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 879 B After Width: | Height: | Size: 879 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 7.0 KiB |
@ -1,4 +1,4 @@
|
||||
// Test fit/fill expansion.
|
||||
// Test shrink-to-fit vs fixed.
|
||||
|
||||
---
|
||||
#let right(body) = align(right, body)
|
@ -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
|
@ -1,5 +1,39 @@
|
||||
// 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
|
||||
|