typst/tests
Laurenz e3139ed3ee Allow shortening locations from 1:x-1:y to x-y 🩳 2021-01-30 16:46:16 +01:00
..
full New syntax 💎 2021-01-30 12:09:26 +01:00
lang Allow shortening locations from 1:x-1:y to x-y 🩳 2021-01-30 16:46:16 +01:00
library Allow shortening locations from 1:x-1:y to x-y 🩳 2021-01-30 16:46:16 +01:00
res Compress images in PDFs ⚙ 2020-11-30 22:07:08 +01:00
README.md Flip test directory structure 🔃 2021-01-16 15:39:25 +01:00
typeset.rs Allow shortening locations from 1:x-1:y to x-y 🩳 2021-01-30 16:46:16 +01:00

README.md

Tests

Top level directory structure:

  • full: Tests of full documents.
  • lang: Tests for specific language features.
  • library: Tests for specific library functions.
  • res: Resource files used by tests.

Directory structure for each category:

  • typ: Input files.
  • ref: Reference images which the output is compared with to determine whether a test passed or failed.
  • png: PNG files produced by tests.
  • pdf: PDF files produced by tests.

To keep things small, please optimize the reference images:

# One image
oxipng -o max path/to/image.png

# All images
oxipng -r -o max tests/*/ref