diff options
| author | Martin Haug <mhaug@live.de> | 2021-05-31 17:19:46 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-05-31 22:33:40 +0200 |
| commit | 37e08460377498165f421a522cb4eb1bb4e246b7 (patch) | |
| tree | 0480965d5497721db1f97d83057902fc2e2e719e /tests/typ/code/importable | |
| parent | 00ac68b8451179468aa39cba0d7fbea1ee20e0a1 (diff) | |
Test cases for include and import
Diffstat (limited to 'tests/typ/code/importable')
| -rw-r--r-- | tests/typ/code/importable/chap1.typ | 9 | ||||
| -rw-r--r-- | tests/typ/code/importable/chap2.typ | 11 | ||||
| -rw-r--r-- | tests/typ/code/importable/cycle1.typ | 7 | ||||
| -rw-r--r-- | tests/typ/code/importable/cycle2.typ | 7 |
4 files changed, 34 insertions, 0 deletions
diff --git a/tests/typ/code/importable/chap1.typ b/tests/typ/code/importable/chap1.typ new file mode 100644 index 00000000..06a4c1a1 --- /dev/null +++ b/tests/typ/code/importable/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/code/importable/chap2.typ b/tests/typ/code/importable/chap2.typ new file mode 100644 index 00000000..d4aedc60 --- /dev/null +++ b/tests/typ/code/importable/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/code/importable/cycle1.typ b/tests/typ/code/importable/cycle1.typ new file mode 100644 index 00000000..e251686d --- /dev/null +++ b/tests/typ/code/importable/cycle1.typ @@ -0,0 +1,7 @@ +// Ref: false + +// Error: 9-21 cyclic import +#import "cycle2.typ" using * +#let inaccessible = "wow" + +This is the first element of an import cycle. diff --git a/tests/typ/code/importable/cycle2.typ b/tests/typ/code/importable/cycle2.typ new file mode 100644 index 00000000..8071ec6b --- /dev/null +++ b/tests/typ/code/importable/cycle2.typ @@ -0,0 +1,7 @@ +// Ref: false + +// Error: 9-21 cyclic import +#import "cycle1.typ" using * +#let val = "much cycle" + +This is the second element of an import cycle. |
