Welcome to the UK List of
TeX Frequently Asked Questions
on the Web
TeX (and Metafont and MetaPost) are written in a
language called Web
which is designed to be portable across a wide range of computer
systems. How, then, is a new version of TeX checked?
Of course, any sensible software implementor will have his own suite
of tests to check that his software runs: those who port TeX and
its friends to other platforms do indeed perform such tests.
Knuth, however, provides a ‘conformance test’ for both TeX
) and Metafont (trap
He characterises these as ‘torture tests’: they are designed not to
check the obvious things that ordinary typeset documents, or font
designs, will exercise, but rather to explore small alleyways off the
main path through the code of TeX. They are, to the casual reader,
Once an implementation of TeX has passed its trip
an implementation of Metafont has passed its trap
test, then it
may in principle be distributed as a working version. (In practice,
any distributor would test new versions against “real” documents or
fonts, too; while trip
test bits of
pathways within the program, they don’t actually test for any real
This answer last edited: 2011-05-28
previous question, or
Go to FAQ home.
URL for this question: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=triptrap
Comments, suggestions, or error reports? - see
“how to improve the FAQ”.
This is FAQ version 3.28, released on 2014-06-10.