summaryrefslogtreecommitdiff
path: root/tests/typ/compiler/modules
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-29 13:37:25 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-29 14:18:13 +0100
commit0efe669278a5e1c3f2985eba2f3360e91159c54a (patch)
tree502712857c48f0decb5e698257c0a96d358a436e /tests/typ/compiler/modules
parent836692e73cff0356e409a9ba5b4887b86809d4ca (diff)
Reorganize library and tests
Diffstat (limited to 'tests/typ/compiler/modules')
-rw-r--r--tests/typ/compiler/modules/chap1.typ9
-rw-r--r--tests/typ/compiler/modules/chap2.typ11
-rw-r--r--tests/typ/compiler/modules/cycle1.typ6
-rw-r--r--tests/typ/compiler/modules/cycle2.typ6
4 files changed, 32 insertions, 0 deletions
diff --git a/tests/typ/compiler/modules/chap1.typ b/tests/typ/compiler/modules/chap1.typ
new file mode 100644
index 00000000..06a4c1a1
--- /dev/null
+++ b/tests/typ/compiler/modules/chap1.typ
@@ -0,0 +1,9 @@
+// Ref: false
+
+#let name = "Klaus"
+
+== Chapter 1
+#name stood in a field of wheat. There was nothing of particular interest about
+the field #name just casually surveyed for any paths on which the corn would not
+totally ruin his semi-new outdorsy jacket but then again, most of us spend
+considerable time in non-descript environments.
diff --git a/tests/typ/compiler/modules/chap2.typ b/tests/typ/compiler/modules/chap2.typ
new file mode 100644
index 00000000..d4aedc60
--- /dev/null
+++ b/tests/typ/compiler/modules/chap2.typ
@@ -0,0 +1,11 @@
+// Ref: false
+
+#let name = "Klaus"
+
+== Chapter 2
+Their motivations, however, were pretty descript, so to speak. #name had not yet
+conceptualized their consequences, but that should change pretty quickly. #name
+approached the center of the field and picked up a 4-foot long disk made from
+what could only be cow manure. The hair on the back of #name' neck bristled as
+he stared at the unusual sight. After studying the object for a while, he
+promptly popped the question, "How much?"
diff --git a/tests/typ/compiler/modules/cycle1.typ b/tests/typ/compiler/modules/cycle1.typ
new file mode 100644
index 00000000..a9c00f5e
--- /dev/null
+++ b/tests/typ/compiler/modules/cycle1.typ
@@ -0,0 +1,6 @@
+// Ref: false
+
+#import * from "cycle2.typ"
+#let inaccessible = "wow"
+
+This is the first element of an import cycle.
diff --git a/tests/typ/compiler/modules/cycle2.typ b/tests/typ/compiler/modules/cycle2.typ
new file mode 100644
index 00000000..204da519
--- /dev/null
+++ b/tests/typ/compiler/modules/cycle2.typ
@@ -0,0 +1,6 @@
+// Ref: false
+
+#import * from "cycle1.typ"
+#let val = "much cycle"
+
+This is the second element of an import cycle.