The E specification contained in this wiki incorporates a test suite written in Updoc.

Updoc syntax and behavior

XXX write the rest of this

An updoc test failure occurs when the actual answers resulting from evaluation are not equal (except for stack traces) to the expected answers written in the test script.

Printing

In the Updoc environment, the text printed via the output objects stdout, stderr, print, and println is part of the results checked.

Semantics: stdout and stderr write to separate buffers. At the following times in the execution of each step, the contents of each buffer, if nonempty, are moved into answers named "stdout" and "stderr":

after evaluation of the step, but before the value is printed

after interp.waitAtTop/blockAtTop pauses and after all turns queued by the step have executed, but before the evaluation of the next step