diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/suite/loading/read.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/suite/loading/read.typ')
| -rw-r--r-- | tests/suite/loading/read.typ | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/suite/loading/read.typ b/tests/suite/loading/read.typ new file mode 100644 index 00000000..b5c9c089 --- /dev/null +++ b/tests/suite/loading/read.typ @@ -0,0 +1,12 @@ +--- read-text --- +// Test reading plain text files +#let data = read("/assets/text/hello.txt") +#test(data, "Hello, world!\n") + +--- read-file-not-found --- +// Error: 18-44 file not found (searched at assets/text/missing.txt) +#let data = read("/assets/text/missing.txt") + +--- read-invalid-utf-8 --- +// Error: 18-40 file is not valid utf-8 +#let data = read("/assets/text/bad.txt") |
