summaryrefslogtreecommitdiff
path: root/tests/typ/code
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/code')
-rw-r--r--tests/typ/code/block.typ8
-rw-r--r--tests/typ/code/call.typ2
-rw-r--r--tests/typ/code/closure.typ2
-rw-r--r--tests/typ/code/for.typ4
-rw-r--r--tests/typ/code/if.typ8
-rw-r--r--tests/typ/code/ops-invalid.typ2
-rw-r--r--tests/typ/code/ops.typ4
-rw-r--r--tests/typ/code/repr.typ2
-rw-r--r--tests/typ/code/return.typ2
-rw-r--r--tests/typ/code/while.typ4
10 files changed, 19 insertions, 19 deletions
diff --git a/tests/typ/code/block.typ b/tests/typ/code/block.typ
index 9122ea48..194cde7a 100644
--- a/tests/typ/code/block.typ
+++ b/tests/typ/code/block.typ
@@ -11,7 +11,7 @@
for s in parts [{s}]
}
-// Evaluates to join of the templates and strings.
+// Evaluates to join of the content and strings.
{
[How]
if true {
@@ -52,13 +52,13 @@
// Some things can't be joined.
{
[A]
- // Error: 3-4 cannot join template with integer
+ // Error: 3-4 cannot join content with integer
1
[B]
}
---
-// Block directly in template also creates a scope.
+// Block directly in markup also creates a scope.
{ let x = 1 }
// Error: 7-8 unknown variable
@@ -103,7 +103,7 @@
}
---
-// Template also creates a scope.
+// Content blocks also create a scope.
[#let x = 1]
// Error: 2-3 unknown variable
diff --git a/tests/typ/code/call.typ b/tests/typ/code/call.typ
index 5736c63b..51ef1df5 100644
--- a/tests/typ/code/call.typ
+++ b/tests/typ/code/call.typ
@@ -63,7 +63,7 @@
---
#let f(x) = x
-// Error: 1-6 expected callable or collection, found template
+// Error: 1-6 expected callable or collection, found content
#f[1](2)
---
diff --git a/tests/typ/code/closure.typ b/tests/typ/code/closure.typ
index 14e74e7e..6ef3cb28 100644
--- a/tests/typ/code/closure.typ
+++ b/tests/typ/code/closure.typ
@@ -2,7 +2,7 @@
// Ref: false
---
-// Don't parse closure directly in template.
+// Don't parse closure directly in content.
// Ref: true
#let x = "\"hi\""
diff --git a/tests/typ/code/for.typ b/tests/typ/code/for.typ
index 661079fe..e161ba84 100644
--- a/tests/typ/code/for.typ
+++ b/tests/typ/code/for.typ
@@ -28,7 +28,7 @@
"]"
}
-// Template body.
+// Content block body.
// Should output `2345`.
#for v in (1, 2, 3, 4, 5, 6, 7) [#if v >= 2 and v <= 5 { repr(v) }]
@@ -76,7 +76,7 @@
// Return value.
#test(for v in "" [], none)
-#test(type(for v in "1" []), "template")
+#test(type(for v in "1" []), "content")
---
// Uniterable expression.
diff --git a/tests/typ/code/if.typ b/tests/typ/code/if.typ
index 3b3164fc..0ab5c495 100644
--- a/tests/typ/code/if.typ
+++ b/tests/typ/code/if.typ
@@ -16,7 +16,7 @@
One.
]
-// Template in condition.
+// Content block in condition.
#if [] != none [
Two.
]
@@ -39,10 +39,10 @@
"Four" + point
}
-// Template can be argument or body depending on whitespace.
+// Content block can be argument or body depending on whitespace.
{
- if "template" == type[b] [Fi] else [Nope]
- if "template" == type [Nope] else [ve.]
+ if "content" == type[b] [Fi] else [Nope]
+ if "content" == type [Nope] else [ve.]
}
#let i = 3
diff --git a/tests/typ/code/ops-invalid.typ b/tests/typ/code/ops-invalid.typ
index 340e4c9f..184e20cf 100644
--- a/tests/typ/code/ops-invalid.typ
+++ b/tests/typ/code/ops-invalid.typ
@@ -14,7 +14,7 @@
#test({2*}, 2)
---
-// Error: 2-12 cannot apply '+' to template
+// Error: 2-12 cannot apply '+' to content
{+([] + [])}
---
diff --git a/tests/typ/code/ops.typ b/tests/typ/code/ops.typ
index 53d00132..b81fc841 100644
--- a/tests/typ/code/ops.typ
+++ b/tests/typ/code/ops.typ
@@ -2,7 +2,7 @@
// Ref: false
---
-// Test template addition.
+// Test adding content.
// Ref: true
{[*Hello* ] + [world!]}
@@ -130,7 +130,7 @@
#test(test == test, true)
#test((() => {}) == (() => {}), false)
-// Templates compare by some kind of equality.
+// Content compares by hash equality.
#let t = [a]
#test(t == t, true)
#test([] == [], true)
diff --git a/tests/typ/code/repr.typ b/tests/typ/code/repr.typ
index 22890ff1..f766ee7e 100644
--- a/tests/typ/code/repr.typ
+++ b/tests/typ/code/repr.typ
@@ -39,7 +39,7 @@
{"a\n[]\"\u{1F680}string"}
---
-// Templates.
+// Content.
{[*{"H" + "i"} there*]}
---
diff --git a/tests/typ/code/return.typ b/tests/typ/code/return.typ
index 9ee3aed7..d3016444 100644
--- a/tests/typ/code/return.typ
+++ b/tests/typ/code/return.typ
@@ -30,7 +30,7 @@
#test(f(2), "ad")
---
-// Test return with joining and template.
+// Test return with joining and content.
// Ref: true
#let f(text, caption: none) = {
diff --git a/tests/typ/code/while.typ b/tests/typ/code/while.typ
index ccb67968..5dc5ae41 100644
--- a/tests/typ/code/while.typ
+++ b/tests/typ/code/while.typ
@@ -26,11 +26,11 @@
#test(while false {}, none)
#let i = 0
-#test(type(while i < 1 [{ i += 1 }]), "template")
+#test(type(while i < 1 [{ i += 1 }]), "content")
---
// Condition must be boolean.
-// Error: 8-14 expected boolean, found template
+// Error: 8-14 expected boolean, found content
#while [nope] [nope]
---