typst/tests
Laurenz 51efb0f4d6 Port remaining parser tests 🚚 2021-01-16 15:08:03 +01:00
..
ref Port remaining parser tests 🚚 2021-01-16 15:08:03 +01:00
res Compress images in PDFs ⚙ 2020-11-30 22:07:08 +01:00
typ Port remaining parser tests 🚚 2021-01-16 15:08:03 +01:00
README.md Move bracket function tests to integration 🚚 2021-01-14 17:30:22 +01:00
typeset.rs Split state and scopes, less ref-counting 🔀 2021-01-15 16:53:02 +01:00

README.md

Tests

Directory structure:

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

The test files are split into three categories:

  • full: Tests of full documents.
  • lang: Tests for specific language features.
  • library: Tests for specific library functions.

To keep things small, please optimize the reference images:

# One image
oxipng -o max tests/ref/image.png

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