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/include.typ | |
| parent | 00ac68b8451179468aa39cba0d7fbea1ee20e0a1 (diff) | |
Test cases for include and import
Diffstat (limited to 'tests/typ/code/include.typ')
| -rw-r--r-- | tests/typ/code/include.typ | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/typ/code/include.typ b/tests/typ/code/include.typ new file mode 100644 index 00000000..9fd028f9 --- /dev/null +++ b/tests/typ/code/include.typ @@ -0,0 +1,23 @@ +// Test include statements. + +--- += Document + +// Include a file +#include "importable/chap1.typ" + +// The variables of the file should not appear in this scope. +// Error: 1-6 unknown variable +#name + +// Expression as a file name. +#let chap2 = include "import" + "able/chap" + "2.typ" + +_ -- Intermission -- _ +#chap2 + +{ + // Expressions, code mode. + // Error: 21-43 file not found + let x = include "importable/chap3.typ" +} |
